Struct pulldown_cmark_escape::FmtWriter
source · pub struct FmtWriter<W>(pub W);
Expand description
This wrapper exists because we can’t have both a blanket implementation
for all types implementing io::Write
and types of the form &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 FmtWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for FmtWriter<W>where
W: RefUnwindSafe,
impl<W> Send for FmtWriter<W>where
W: Send,
impl<W> Sync for FmtWriter<W>where
W: Sync,
impl<W> Unpin for FmtWriter<W>where
W: Unpin,
impl<W> UnwindSafe for FmtWriter<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