pub struct DocWriter<'doc, T>where
T: StrictEncode,{ /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'doc, T> StrictEncode for DocWriter<'doc, T>where
T: StrictEncode,
impl<'doc, T> StrictEncode for DocWriter<'doc, T>where
T: StrictEncode,
Source§fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
Encode with the given
std::io::Write instance; must return result
with either amount of bytes encoded – or implementation-specific
error type.Source§fn strict_serialize(&self) -> Result<Vec<u8>, Error>
fn strict_serialize(&self) -> Result<Vec<u8>, Error>
Serializes data as a byte array using
StrictEncode::strict_encode
functionAuto Trait Implementations§
impl<'doc, T> Freeze for DocWriter<'doc, T>
impl<'doc, T> RefUnwindSafe for DocWriter<'doc, T>where
T: RefUnwindSafe,
impl<'doc, T> Send for DocWriter<'doc, T>where
T: Sync,
impl<'doc, T> Sync for DocWriter<'doc, T>where
T: Sync,
impl<'doc, T> Unpin for DocWriter<'doc, T>
impl<'doc, T> UnwindSafe for DocWriter<'doc, T>where
T: RefUnwindSafe,
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