pub struct WrapFmt<W>(/* private fields */);Trait Implementations§
Source§impl<W: Write> Open for WrapFmt<W>
impl<W: Write> Open for WrapFmt<W>
Source§fn write_fmt(&mut self, arg: Arguments<'_>) -> Result<(), Self::Error>
fn write_fmt(&mut self, arg: Arguments<'_>) -> Result<(), Self::Error>
Write-like interface allowing to be used with the write! macro
Source§fn ref_open<O: Opener>(
&mut self,
e: O,
) -> Result<WriteScope<O::Close, &mut Self::W>, <Self::W as Open>::Error>
fn ref_open<O: Opener>( &mut self, e: O, ) -> Result<WriteScope<O::Close, &mut Self::W>, <Self::W as Open>::Error>
Open a new scope, taking a reference to self
Source§fn open_scope<O: Opener>(
&mut self,
e: O,
f: impl FnOnce(&mut WriteScope<O::Close, &mut Self::W>) -> Result<(), <Self::W as Open>::Error>,
) -> Result<(), <Self::W as Open>::Error>
fn open_scope<O: Opener>( &mut self, e: O, f: impl FnOnce(&mut WriteScope<O::Close, &mut Self::W>) -> Result<(), <Self::W as Open>::Error>, ) -> Result<(), <Self::W as Open>::Error>
Open a scope and pass it as argument to the provided closure, closing it at the closures end
Auto Trait Implementations§
impl<W> Freeze for WrapFmt<W>where
W: Freeze,
impl<W> RefUnwindSafe for WrapFmt<W>where
W: RefUnwindSafe,
impl<W> Send for WrapFmt<W>where
W: Send,
impl<W> Sync for WrapFmt<W>where
W: Sync,
impl<W> Unpin for WrapFmt<W>where
W: Unpin,
impl<W> UnwindSafe for WrapFmt<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