pub trait ToFormatParser<'a> {
    type Parser: Iterator<Item = ParseSegment<'a>>;

    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§

The Parser type that returns the ParseSegments

Required Methods§

Turn this value into the parser

Get the unparsed str from this parser. Used to determine if there was an error while parsing.

Implementations on Foreign Types§

Implementors§