pub struct FmtWriter<W>(pub W);
Expand description
Wrapper for writer implementing std::fmt::Write.
Tuple Fields§
§0: W
Trait Implementations§
Source§impl<W: Write> WriterExt for FmtWriter<W>
impl<W: Write> WriterExt for FmtWriter<W>
type Error = Error
Source§fn write<E: Display>(&mut self, input: E) -> Result<(), Self::Error>
fn write<E: Display>(&mut self, input: E) -> Result<(), Self::Error>
Function that will write any element that implement std::fmt::Display.
fn write_str(&mut self, input: &str) -> Result<(), Self::Error>
fn write_char(&mut self, input: char) -> Result<(), Self::Error>
Auto Trait Implementations§
impl<W> Freeze for FmtWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for FmtWriter<W>where
W: RefUnwindSafe,
impl<W> Send for FmtWriter<W>where
W: Send,
impl<W> Sync for FmtWriter<W>where
W: Sync,
impl<W> Unpin for FmtWriter<W>where
W: Unpin,
impl<W> UnwindSafe for FmtWriter<W>where
W: UnwindSafe,
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