pub struct Decoder<'a> { /* private fields */ }Expand description
Allocation-free incremental gzip decoder.
Implementations§
Source§impl<'a> Decoder<'a>
impl<'a> Decoder<'a>
pub fn new(buffers: DecoderBuffers<'a>) -> Result<Self, DecodeError>
pub fn decode<'decoder>( &'decoder mut self, input: &[u8], ) -> Result<DecodeStep<'decoder>, DecodeError>
pub fn finish(&self) -> Result<(), DecodeError>
pub fn reset(&mut self)
Auto Trait Implementations§
impl<'a> !UnwindSafe for Decoder<'a>
impl<'a> Freeze for Decoder<'a>
impl<'a> RefUnwindSafe for Decoder<'a>
impl<'a> Send for Decoder<'a>
impl<'a> Sync for Decoder<'a>
impl<'a> Unpin for Decoder<'a>
impl<'a> UnsafeUnpin for Decoder<'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