pub trait ToFormatParser<'a> {
type Parser: Iterator<Item = ParseSegment<'a>>;
// Required methods
fn to_parser(&'a self) -> Self::Parser;
fn unparsed(iter: Self::Parser) -> &'a str;
}
Expand description
Turn a value into parsed formatting segments on the fly.
Required Associated Types§
Sourcetype Parser: Iterator<Item = ParseSegment<'a>>
type Parser: Iterator<Item = ParseSegment<'a>>
The Parser type that returns the ParseSegment
s
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.