pub trait ToStringWith<How> {
// Required method
fn to_string_with<'s>(&'s self) -> Cow<'s, str>;
}
Expand description
Trait to convert a type to a string using a specified formatting method.
Required Methods§
Sourcefn to_string_with<'s>(&'s self) -> Cow<'s, str>
fn to_string_with<'s>(&'s self) -> Cow<'s, str>
Converts the type to a string using the specified formatting method.