Enum alacritty::config::ui_config::LazyRegexVariant
source · pub enum LazyRegexVariant {
Compiled(Box<RegexSearch>),
Pattern(String),
}
Expand description
Regex which is compiled on demand, to avoid expensive computations at startup.
Variants§
Compiled(Box<RegexSearch>)
Pattern(String)
Implementations§
source§impl LazyRegexVariant
impl LazyRegexVariant
sourcefn compiled(&mut self) -> &RegexSearch
fn compiled(&mut self) -> &RegexSearch
Get a reference to the compiled regex.
If the regex is not already compiled, this will compile the DFAs and store them for future access.
Trait Implementations§
source§impl Clone for LazyRegexVariant
impl Clone for LazyRegexVariant
source§fn clone(&self) -> LazyRegexVariant
fn clone(&self) -> LazyRegexVariant
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LazyRegexVariant
impl Debug for LazyRegexVariant
source§impl PartialEq<LazyRegexVariant> for LazyRegexVariant
impl PartialEq<LazyRegexVariant> for LazyRegexVariant
impl Eq for LazyRegexVariant
Auto Trait Implementations§
impl RefUnwindSafe for LazyRegexVariant
impl Send for LazyRegexVariant
impl Sync for LazyRegexVariant
impl Unpin for LazyRegexVariant
impl UnwindSafe for LazyRegexVariant
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.