[][src]Struct lazy_string_replace::ReplaceDisplay

pub struct ReplaceDisplay<'a, H, R> { /* fields omitted */ }

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]

Auto Trait Implementations

impl<'a, H, R> Send for ReplaceDisplay<'a, H, R> where
    H: Send,
    R: Send

impl<'a, H, R> Unpin for ReplaceDisplay<'a, H, R> where
    H: Unpin,
    R: Unpin

impl<'a, H, R> Sync for ReplaceDisplay<'a, H, R> where
    H: Sync,
    R: Sync

impl<'a, H, R> UnwindSafe for ReplaceDisplay<'a, H, R> where
    H: UnwindSafe,
    R: UnwindSafe

impl<'a, H, R> RefUnwindSafe for ReplaceDisplay<'a, H, R> where
    H: RefUnwindSafe,
    R: RefUnwindSafe

Blanket Implementations

impl<T> LazyReplaceDisplay for T where
    T: Display
[src]

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]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]