pub struct ReplaceDisplay<'a, H, R> { /* private fields */ }
Expand description
A type to lazily replace strings in any type that implements Display
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, H, R> Freeze for ReplaceDisplay<'a, H, R>
impl<'a, H, R> RefUnwindSafe for ReplaceDisplay<'a, H, R>where
H: RefUnwindSafe,
R: RefUnwindSafe,
impl<'a, H, R> Send for ReplaceDisplay<'a, H, R>
impl<'a, H, R> Sync for ReplaceDisplay<'a, H, R>
impl<'a, H, R> Unpin for ReplaceDisplay<'a, H, R>
impl<'a, H, R> UnwindSafe for ReplaceDisplay<'a, H, R>where
H: UnwindSafe,
R: UnwindSafe,
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
Source§impl<T> LazyReplaceDisplay for Twhere
T: Display,
impl<T> LazyReplaceDisplay for Twhere
T: Display,
Source§fn replace_display<'a, R>(
self,
pat: &'a str,
replacement: R,
) -> ReplaceDisplay<'a, T, R>
fn replace_display<'a, R>( self, pat: &'a str, replacement: R, ) -> ReplaceDisplay<'a, T, R>
Create a struct implementing Display
that will display this string with the specified pattern replaced with the specified replacement