Struct regex::ReplacerRef
source · [−]pub struct ReplacerRef<'a, R: ?Sized>(_);
Expand description
By-reference adaptor for a Replacer
Returned by Replacer::by_ref
.
Trait Implementations
sourceimpl<'a, R: Debug + ?Sized> Debug for ReplacerRef<'a, R>
impl<'a, R: Debug + ?Sized> Debug for ReplacerRef<'a, R>
sourceimpl<'a, R: Replacer + ?Sized + 'a> Replacer for ReplacerRef<'a, R>
impl<'a, R: Replacer + ?Sized + 'a> Replacer for ReplacerRef<'a, R>
sourcefn replace_append(&mut self, caps: &Captures<'_>, dst: &mut String)
fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut String)
Appends text to dst
to replace the current match. Read more
sourcefn no_expansion(&mut self) -> Option<Cow<'_, str>>
fn no_expansion(&mut self) -> Option<Cow<'_, str>>
Return a fixed unchanging replacement string. Read more
sourcefn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>
fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>
Return a Replacer
that borrows and wraps this Replacer
. Read more
Auto Trait Implementations
impl<'a, R: ?Sized> RefUnwindSafe for ReplacerRef<'a, R> where
R: RefUnwindSafe,
impl<'a, R: ?Sized> Send for ReplacerRef<'a, R> where
R: Send,
impl<'a, R: ?Sized> Sync for ReplacerRef<'a, R> where
R: Sync,
impl<'a, R: ?Sized> Unpin for ReplacerRef<'a, R>
impl<'a, R> !UnwindSafe for ReplacerRef<'a, R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more