pub type FormatMap<T> = FnvHashMap<SmartString<LazyCompact>, FormatterCallback<T>>;
Expand description
A mapping of keys to callback functions.
Aliased Type§
pub struct FormatMap<T> { /* private fields */ }
Trait Implementations§
Source§impl<T> ToFormatPieces<T> for FormatMap<T>
impl<T> ToFormatPieces<T> for FormatMap<T>
Source§fn to_format_pieces<S: AsRef<str>>(
&self,
tmpl: S,
) -> Result<FormatPieces<T>, Error>
fn to_format_pieces<S: AsRef<str>>( &self, tmpl: S, ) -> Result<FormatPieces<T>, Error>
Processes the given value into a
FormatPieces<T>
. Read more