pub struct Fmt { /* private fields */ }Expand description
Fmt implements Formatter.
Implementations§
Trait Implementations§
Source§impl Formatter for Fmt
impl Formatter for Fmt
Source§fn begin_line_folding(&mut self)
fn begin_line_folding(&mut self)
Switches the
Formatter mode to “line folding”. The Formatter
must be currently in “direct” mode.Source§fn end_line_folding(&mut self)
fn end_line_folding(&mut self)
Switches the
Formatter mode to “direct”. The Formatter must
be currently in “line folding” mode.Source§fn push_new_boundary(&mut self)
fn push_new_boundary(&mut self)
Registers a new boundary.
This pushes the boundary on top of the internal “boundary stack”.
Source§fn write_current_boundary(&mut self)
fn write_current_boundary(&mut self)
Write the current declared boundary to the output (the one on top of the
internal boundary stack). The
Formatter can be either in “direct” or
“line folding” mode. Read moreSource§fn pop_boundary(&mut self)
fn pop_boundary(&mut self)
Pop the current boundary from the top of the “boundary stack”.
Source§fn write_bytes(&mut self, buf: &[u8])
fn write_bytes(&mut self, buf: &[u8])
Write bytes from
buf; they cannot be used for line folding. Read moreSource§fn write_fws_bytes(&mut self, buf: &[u8])
fn write_fws_bytes(&mut self, buf: &[u8])
Write whitespace bytes from
buf. In “line folding” mode, they can be
used for line folding. Read moreSource§fn write_crlf(&mut self)
fn write_crlf(&mut self)
Terminate the current line, writing CRLF (“\r\n”).
Auto Trait Implementations§
impl Freeze for Fmt
impl RefUnwindSafe for Fmt
impl Send for Fmt
impl Sync for Fmt
impl Unpin for Fmt
impl UnsafeUnpin for Fmt
impl UnwindSafe for Fmt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more