lazy_format
A [no_std]
library for lazily formatting things. Because allocating temporary strings is bad for your health.
use io;
use lazy_format;
use JoinableIterator;
The above example is the key motivating example: when building up some kind of object you wish to write or format, there's no reason to allocate intermediary strings (which is what format!
does). Instead, lazy_format!
captures its arguments and returns an opaque struct with a Display
implementation, so that the actual formatting can happen directly into its final destination buffer (such as a file or string).