pub struct Writer<'a> { /* private fields */ }
Expand description
A Writer takes data written to it and writes the compressed form of that data to an underlying writer (see new_writer).
Implementations§
source§impl<'a> Writer<'a>
impl<'a> Writer<'a>
sourcepub fn reset(&mut self, w: &'a mut dyn Write)
pub fn reset(&mut self, w: &'a mut dyn Write)
reset clears the state of the Writer z such that it is equivalent to its initial state from new_writer_level or new_writer_level_dict, but instead writing to w.
sourcepub fn write(&mut self, p: &[u8]) -> Result<usize>
pub fn write(&mut self, p: &[u8]) -> Result<usize>
write writes a compressed form of p to the underlying writer. The compressed bytes are not necessarily flushed until the Writer is closed or explicitly flushed.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Writer<'a>
impl<'a> !Send for Writer<'a>
impl<'a> !Sync for Writer<'a>
impl<'a> Unpin for Writer<'a>
impl<'a> !UnwindSafe for Writer<'a>
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