pub struct LazyRegex(Rc<RefCell<LazyRegexVariant>>);
Expand description
Lazy regex with interior mutability.
Tuple Fields§
§0: Rc<RefCell<LazyRegexVariant>>
Implementations§
source§impl LazyRegex
impl LazyRegex
sourcepub fn with_compiled<T, F>(&self, f: F) -> Twhere
F: FnMut(&RegexSearch) -> T,
pub fn with_compiled<T, F>(&self, f: F) -> Twhere F: FnMut(&RegexSearch) -> T,
Execute a function with the compiled regex DFAs as parameter.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LazyRegex
impl<'de> Deserialize<'de> for LazyRegex
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<LazyRegex> for LazyRegex
impl PartialEq<LazyRegex> for LazyRegex
impl Eq for LazyRegex
impl StructuralEq for LazyRegex
impl StructuralPartialEq for LazyRegex
Auto Trait Implementations§
impl !RefUnwindSafe for LazyRegex
impl !Send for LazyRegex
impl !Sync for LazyRegex
impl Unpin for LazyRegex
impl !UnwindSafe for LazyRegex
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.