Module lazy_format::prelude
source · Macros
- Lazily format something. Essentially the same as
format!
, except that instead of formatting its arguments to a string, it captures them in an opaque struct, which can be formatted later. This allows you to build up formatting operations without any intermediary allocations or extra formatting calls. Also supports lazy conditional and looping constructs. - Low level constructor for lazy format instances. Create a lazy formatter with a custom closure as its
Display
implementation, for complete control over formatting behavior at write time.