pub struct Decoder { /* private fields */ }
Expand description
Streaming decoder context.
Implementations§
Source§impl Decoder
impl Decoder
Sourcepub fn step(
&mut self,
consumed: &[u8],
produced: &mut [u8],
) -> (usize, usize, DecoderState)
pub fn step( &mut self, consumed: &[u8], produced: &mut [u8], ) -> (usize, usize, DecoderState)
Steps this decoder instance, returning a (bytes consumed, bytes produced, state)
tuple.
Sourcepub fn partial_output_byte(&self) -> Option<(u8, usize)>
pub fn partial_output_byte(&self) -> Option<(u8, usize)>
Retrieves the (right-aligned) last partial output byte.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnwindSafe for Decoder
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