Struct pulldown_cmark::escape::WriteWrapper
source · pub struct WriteWrapper<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§
source§impl<W: Debug> Debug for WriteWrapper<W>
impl<W: Debug> Debug for WriteWrapper<W>
Auto Trait Implementations§
impl<W> RefUnwindSafe for WriteWrapper<W>where
W: RefUnwindSafe,
impl<W> Send for WriteWrapper<W>where
W: Send,
impl<W> Sync for WriteWrapper<W>where
W: Sync,
impl<W> Unpin for WriteWrapper<W>where
W: Unpin,
impl<W> UnwindSafe for WriteWrapper<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