Struct ReplacerRef

pub struct ReplacerRef<'a, R: ?Sized>(/* private field */);

A by-reference adaptor for a Replacer.

This permits reusing the same Replacer value in multiple calls to a replacement routine like Regex::replace_all.

This type is created by Replacer::by_ref.

Trait Implementations

impl<'a, R: Debug + ?Sized> Debug for ReplacerRef<'a, R>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'a, R: Replacer + ?Sized + 'a> Replacer for ReplacerRef<'a, R>

fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut String)
fn no_expansion(&mut self) -> Option<Cow<'_, str>>

Auto Trait Implementations

impl<'a, R> !UnwindSafe for ReplacerRef<'a, R>

impl<'a, R> Freeze for ReplacerRef<'a, R> where &'a mut R: Freeze, R: ?Sized,

impl<'a, R> RefUnwindSafe for ReplacerRef<'a, R> where &'a mut R: RefUnwindSafe, R: ?Sized,

impl<'a, R> Send for ReplacerRef<'a, R> where &'a mut R: Send, R: ?Sized,

impl<'a, R> Sync for ReplacerRef<'a, R> where &'a mut R: Sync, R: ?Sized,

impl<'a, R> Unpin for ReplacerRef<'a, R> where &'a mut R: Unpin, R: ?Sized,

impl<'a, R> UnsafeUnpin for ReplacerRef<'a, R> where &'a mut R: UnsafeUnpin, R: ?Sized,

Blanket Implementations

impl<T> Any for ReplacerRef<'a, R> where T: 'static + ?Sized,

impl<T> Borrow<T> for ReplacerRef<'a, R> where T: ?Sized,

impl<T> BorrowMut<T> for ReplacerRef<'a, R> where T: ?Sized,

impl<T> From<T> for ReplacerRef<'a, R>

impl<T, U> Into<U> for ReplacerRef<'a, R> where U: From<T>,

impl<T, U> TryFrom<U> for ReplacerRef<'a, R> where U: Into<T>,

impl<T, U> TryInto<U> for ReplacerRef<'a, R> where U: TryFrom<T>,