pub struct IoWriter<W>(pub W);
Expand description
This wrapper exists because we can’t have both a blanket implementation
for all types implementing Write
and types of the for &mut W
where
W: StrWrite
. Since we need the latter a lot, we choose to wrap
Write
types.
Tuple Fields§
§0: W
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for IoWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for IoWriter<W>where
W: RefUnwindSafe,
impl<W> Send for IoWriter<W>where
W: Send,
impl<W> Sync for IoWriter<W>where
W: Sync,
impl<W> Unpin for IoWriter<W>where
W: Unpin,
impl<W> UnwindSafe for IoWriter<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