[][src]Trait lazy_string_replace::LazyReplaceDisplay

pub trait LazyReplaceDisplay: Sized {
    fn replace_display<'a, R>(
        self,
        pat: &'a str,
        replacement: R
    ) -> ReplaceDisplay<'a, Self, R>; }

A convenience trait to allow you to call .replace_display on anything that implements fmt::Display.

Required methods

fn replace_display<'a, R>(
    self,
    pat: &'a str,
    replacement: R
) -> ReplaceDisplay<'a, Self, R>

Create a struct implementing Display that will display this string with the specified pattern replaced with the specified replacement

Loading content...

Implementors

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

fn replace_display<'a, R>(
    self,
    pat: &'a str,
    replacement: R
) -> ReplaceDisplay<'a, Self, R>
[src]

Create a struct implementing Display that will display this string with the specified pattern replaced with the specified replacement

Loading content...