pub struct NoExpand<'t>(pub &'t str);Expand description
A replacement that is inserted exactly as given, with no $ expansion.
§Examples
use ferroni::prelude::*;
let re = Regex::new(r"\d+").unwrap();
assert_eq!(re.replace_all("a1 b22", NoExpand("$0")), "a$0 b$0");Tuple Fields§
§0: &'t strTrait Implementations§
impl<'t> Copy for NoExpand<'t>
impl<'t> Eq for NoExpand<'t>
Source§impl Replacer for NoExpand<'_>
impl Replacer for NoExpand<'_>
impl<'t> StructuralPartialEq for NoExpand<'t>
Auto Trait Implementations§
impl<'t> Freeze for NoExpand<'t>
impl<'t> RefUnwindSafe for NoExpand<'t>
impl<'t> Send for NoExpand<'t>
impl<'t> Sync for NoExpand<'t>
impl<'t> Unpin for NoExpand<'t>
impl<'t> UnsafeUnpin for NoExpand<'t>
impl<'t> UnwindSafe for NoExpand<'t>
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