pub struct InputWriter<'a, C: FarfalleConfig> { /* private fields */ }Expand description
A Writer structure that inputs all data that is written to it into the
Farfalle construction.
Trait Implementations§
Source§impl<'a, C: FarfalleConfig> Writer for InputWriter<'a, C>
impl<'a, C: FarfalleConfig> Writer for InputWriter<'a, C>
Source§type Return = ()
type Return = ()
Optional return type for the
Self::finish method.Source§fn capacity(&self) -> usize
fn capacity(&self) -> usize
Return the number of bytes that can still be written to
self. Read moreSource§fn write_bytes(&mut self, data: &[u8]) -> Result<(), WriteTooLargeError>
fn write_bytes(&mut self, data: &[u8]) -> Result<(), WriteTooLargeError>
Write
data.len() bytes to the buffer. Read moreAuto Trait Implementations§
impl<'a, C> Freeze for InputWriter<'a, C>
impl<'a, C> RefUnwindSafe for InputWriter<'a, C>
impl<'a, C> Send for InputWriter<'a, C>
impl<'a, C> Sync for InputWriter<'a, C>
impl<'a, C> Unpin for InputWriter<'a, C>
impl<'a, C> !UnwindSafe for InputWriter<'a, C>
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