[−][src]Struct lazy_string_replace::ReplaceDisplay
A type to lazily replace strings in any type that implements Display
Methods
impl<'a, H, R> ReplaceDisplay<'a, H, R>
[src]
pub fn new(haystack: H, needle: &'a str, replacement: R) -> Self
[src]
Create a new instance of this type
Trait Implementations
impl<'a, D, R> Display for ReplaceDisplay<'a, D, R> where
D: Display,
R: Display,
[src]
D: Display,
R: Display,
Auto Trait Implementations
impl<'a, H, R> Send for ReplaceDisplay<'a, H, R> where
H: Send,
R: Send,
H: Send,
R: Send,
impl<'a, H, R> Unpin for ReplaceDisplay<'a, H, R> where
H: Unpin,
R: Unpin,
H: Unpin,
R: Unpin,
impl<'a, H, R> Sync for ReplaceDisplay<'a, H, R> where
H: Sync,
R: Sync,
H: Sync,
R: Sync,
impl<'a, H, R> UnwindSafe for ReplaceDisplay<'a, H, R> where
H: UnwindSafe,
R: UnwindSafe,
H: UnwindSafe,
R: UnwindSafe,
impl<'a, H, R> RefUnwindSafe for ReplaceDisplay<'a, H, R> where
H: RefUnwindSafe,
R: RefUnwindSafe,
H: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
impl<T> LazyReplaceDisplay for T where
T: Display,
[src]
T: Display,
fn replace_display<R>(Self, &'a str, R) -> ReplaceDisplay<'a, T, R>
[src]
Create a struct implementing Display
that will display this string with the specified pattern replaced with the specified replacement
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,