[−][src]Trait lazy_string_replace::LazyReplaceDisplay
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>
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
Implementors
impl<T> LazyReplaceDisplay for T where
T: Display,
[src]
T: Display,
fn replace_display<'a, R>(
self,
pat: &'a str,
replacement: R
) -> ReplaceDisplay<'a, Self, R>
[src]
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