Struct std::fmt::SliceFormatter
Formatter that writes into a string slice.
Fields
Methods
impl SliceFormatter { ... }
-
fn new(buf: &mut [u8]) -> SliceFormatter
-
fn write_str(self: &mut SliceFormatter, buf: &[u8]) -> Result
Write a string
-
fn write_byte(self: &mut SliceFormatter, byte: u8) -> Result
Write a single character
-
fn get(self: &SliceFormatter) -> &[u8]
Get the resulting string