Struct std::fmt::StreamFormatter
struct StreamFormatter<W> { ... }
W: Writable<W>
Adapter for writting formatted data into a stream
Consider also using BufferedWriter, which implements Formatter directly to wrap the stream in order to avoid performance penalty as string formatting usually performs many small writes.
Fields
-
inner: &mut W
Methods
impl StreamFormatter<W> { ... }
W: Writable<W>
-
fn new(inner: &mut W) -> StreamFormatter<W>
-
fn write_str(self: &mut StreamFormatter<W>, buf: &[u8]) -> Result
Write a string
-
fn write_byte(self: &mut StreamFormatter<W>, byte: u8) -> Result
Write a single character
Mixins
impl StreamFormatter<W> { ... }
W: Writable<W>
-
mixin Formatter<StreamFormatter<W>>