Crate funcfmt
Source - fm
- Convenience macro to construct a single mapping for a
FormatMap, since the types are somewhat
complex.
- Formatter
- A container around the callback that also contains the name of the key.
- Error
- An error produced during formatting.
- FormatPiece
- Either a plain
Char, or a function call back to be called later in render.
- Render
- A trait for rendering format pieces into a resulting
String, given some input data to the
callbacks. - ToFormatPieces
- A trait for processing a sequence of formatters and given template into a
FormatPieces<T>.
- FormatMap
- A mapping of keys to callback functions.
- FormatPieces
- A container of either plain
Chars or function callbacks to be called later in render. - FormatterCallback
- A callback to be provided with data during rendering.