Struct regex::bytes::ReplacerRef
source · pub struct ReplacerRef<'a, R: ?Sized>(_);
Expand description
By-reference adaptor for a Replacer
Returned by Replacer::by_ref
.
Trait Implementations§
source§impl<'a, R: Replacer + ?Sized + 'a> Replacer for ReplacerRef<'a, R>
impl<'a, R: Replacer + ?Sized + 'a> Replacer for ReplacerRef<'a, R>
source§fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut Vec<u8>)
fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut Vec<u8>)
Appends text to
dst
to replace the current match. Read moresource§fn no_expansion<'r>(&'r mut self) -> Option<Cow<'r, [u8]>>
fn no_expansion<'r>(&'r mut self) -> Option<Cow<'r, [u8]>>
Return a fixed unchanging replacement byte string. Read more