pub fn fmt_write(w: &mut impl Write) -> impl FnMut(Argument<'_>) -> c_int + '_Expand description
Write to a struct that implements fmt::Write.
ยงDifferences
There are a few differences from standard printf format:
- only valid UTF-8 data can be printed.
- an
Xformat specifier with a#flag prints the hex data in uppercase, but the leading0xis still lowercase - an
oformat specifier with a#flag precedes the number with anoinstead of0 g/G(shorted floating point) is aliased tof/`F`` (decimal floating point)- same for
a/A(hex floating point) - the
nformat specifier,Specifier::WriteBytesWritten, is not implemented and will cause an error if encountered.