pub enum Replace<'a> {
All(&'a [u8]),
Each(&'a [&'a [u8]]),
}Expand description
The $replace of an array-$search str_replace.
Variants§
All(&'a [u8])
A string: every search string is replaced by it.
Each(&'a [&'a [u8]])
An array: the n-th search string is replaced by the n-th element (in
iteration order), or by "" once the array runs out.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Replace<'a>
impl<'a> Freeze for Replace<'a>
impl<'a> Move for Replace<'a>
impl<'a> RefUnwindSafe for Replace<'a>
impl<'a> Send for Replace<'a>
impl<'a> Sync for Replace<'a>
impl<'a> Unpin for Replace<'a>
impl<'a> UnsafeUnpin for Replace<'a>
impl<'a> UnwindSafe for Replace<'a>
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