pub struct Wrap<T> { /* private fields */ }Trait Implementations§
Source§impl<W> IntoWriter for Wrap<W>where
W: Write,
Available on crate feature std only.
impl<W> IntoWriter for Wrap<W>where
W: Write,
Available on crate feature
std only.Source§impl<W> Writer for Wrap<W>where
W: Write,
Available on crate feature std only.
impl<W> Writer for Wrap<W>where
W: Write,
Available on crate feature
std only.Source§fn finish<C>(&mut self, _: C) -> Result<Self::Ok, C::Error>where
C: Context,
fn finish<C>(&mut self, _: C) -> Result<Self::Ok, C::Error>where
C: Context,
Finalize the writer and return the output.
Source§fn borrow_mut(&mut self) -> Self::Mut<'_>
fn borrow_mut(&mut self) -> Self::Mut<'_>
Reborrow the current type.
Source§fn extend<C>(
&mut self,
cx: C,
buffer: Vec<u8, C::Allocator>,
) -> Result<(), C::Error>where
C: Context,
fn extend<C>(
&mut self,
cx: C,
buffer: Vec<u8, C::Allocator>,
) -> Result<(), C::Error>where
C: Context,
Write a buffer to the current writer.
Auto Trait Implementations§
impl<T> Freeze for Wrap<T>where
T: Freeze,
impl<T> RefUnwindSafe for Wrap<T>where
T: RefUnwindSafe,
impl<T> Send for Wrap<T>where
T: Send,
impl<T> Sync for Wrap<T>where
T: Sync,
impl<T> Unpin for Wrap<T>where
T: Unpin,
impl<T> UnwindSafe for Wrap<T>where
T: 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