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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more