pub trait ToStringWithFallback<'a, How, Fallback1, Fallback2>where
How: 'static,
Fallback1: 'static,
Fallback2: 'static,{
// Required method
fn to_string_with_fallback(self) -> Cow<'a, str>;
}
Expand description
Trait to convert a type to a string with a fallback formatting.
Required Methods§
Sourcefn to_string_with_fallback(self) -> Cow<'a, str>
fn to_string_with_fallback(self) -> Cow<'a, str>
Converts the type to a string using the specified formatting or a fallback.