pub struct RegexIR { /* private fields */ }
Expand description
Regular expression.
It is just the wrapper for regex for serialization/deserialization.
Implementations§
Source§impl RegexIR
impl RegexIR
Sourcepub fn replace_all<'h, R: ReplacerTrait>(
&'h self,
content: &'h str,
replacer: R,
) -> Cow<'h, str>
pub fn replace_all<'h, R: ReplacerTrait>( &'h self, content: &'h str, replacer: R, ) -> Cow<'h, str>
Replaces all non-overlapping matches in the haystack with the replacement provided.
See Regex::replace_all.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RegexIR
impl<'de> Deserialize<'de> for RegexIR
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RegexIR
impl RefUnwindSafe for RegexIR
impl Send for RegexIR
impl Sync for RegexIR
impl Unpin for RegexIR
impl UnwindSafe for RegexIR
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more