[−][src]Function printf_compat::output::fmt_write
pub fn fmt_write(w: &mut impl Write) -> impl FnMut(Argument<'_>) -> c_int + '_
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
X
format specifier with a#
flag prints the hex data in uppercase, but the leading0x
is still lowercase - an
o
format specifier with a#
flag precedes the number with ano
instead of0
g
/G
(shorted floating point) is aliased tof
/`F`` (decimal floating point)- same for
a
/A
(hex floating point) - the
n
format specifier,Specifier::WriteBytesWritten
, is not implemented and will cause an error if encountered.