pub(crate) struct Adapter<W>{
writer: W,
error: Result<()>,
}
Expand description
A shim which allows a std::io::Write
to be implemented in terms of a std::fmt::Write
This saves off I/O errors. instead of discarding them
Fields§
§writer: W
§error: Result<()>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for Adapter<W>where
W: Freeze,
impl<W> !RefUnwindSafe for Adapter<W>
impl<W> Send for Adapter<W>where
W: Send,
impl<W> Sync for Adapter<W>where
W: Sync,
impl<W> Unpin for Adapter<W>where
W: Unpin,
impl<W> !UnwindSafe for Adapter<W>
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