Crate funcfmt

Source

Macros§

fm
Convenience macro to construct a single mapping for a FormatMap, since the types are somewhat complex.

Structs§

Formatter
A container around the callback that also contains the name of the key.

Enums§

Error
An error produced during formatting.
FormatPiece
Either a plain Char, or a function call back to be called later in render.

Traits§

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>.

Type Aliases§

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.