Struct non_std::dependencies::derive_tools::dependencies::parse_display::helpers::regex::bytes::ReplacerRef
[−]pub struct ReplacerRef<'a, R>(_)
where
R: ?Sized;
Expand description
By-reference adaptor for a Replacer
Returned by Replacer::by_ref
.
Trait Implementations
impl<'a, R> Debug for ReplacerRef<'a, R> where
R: Debug + ?Sized,
impl<'a, R> Debug for ReplacerRef<'a, R> where
R: Debug + ?Sized,
impl<'a, R> Replacer for ReplacerRef<'a, R> where
R: 'a + Replacer + ?Sized,
impl<'a, R> Replacer for ReplacerRef<'a, R> where
R: 'a + Replacer + ?Sized,
fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut Vec<u8, Global>)
fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut Vec<u8, Global>)
Appends text to dst
to replace the current match. Read more
fn no_expansion(&'r mut self) -> Option<Cow<'r, [u8]>>
fn no_expansion(&'r mut self) -> Option<Cow<'r, [u8]>>
Return a fixed unchanging replacement byte string. Read more
fn by_ref(&'r mut self) -> ReplacerRef<'r, Self>
fn by_ref(&'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
sourceimpl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
sourceimpl<Target, Original> VectorizedInto<Target> for Original where
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Original where
Target: VectorizedFrom<Original>,
sourcefn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.