[][src]Trait lazy_string_replace::LazyReplace

pub trait LazyReplace {
    fn lazy_replace<P, R>(&self, pat: P, replacement: R) -> ReplacedString<P, R>;
}

A convenience trait to allow you to call .lazy_replace on anything that can deref to a &str.

Required methods

fn lazy_replace<P, R>(&self, pat: P, replacement: R) -> ReplacedString<P, R>

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

Loading content...

Implementations on Foreign Types

impl LazyReplace for str[src]

Loading content...

Implementors

impl<T> LazyReplace for T where
    T: Deref<Target = str>, 
[src]

Loading content...