pub struct Encoder { /* private fields */ }
Expand description
Streaming encoder context.
Implementations§
Source§impl Encoder
impl Encoder
Sourcepub fn step(
&mut self,
consumed: &[u8],
produced: &mut [u8],
) -> (usize, usize, EncoderState)
pub fn step( &mut self, consumed: &[u8], produced: &mut [u8], ) -> (usize, usize, EncoderState)
Steps this encoder instance, returning a (bytes consumed, bytes produced, state)
tuple.
Sourcepub fn set_consumed_bytes_end(&mut self)
pub fn set_consumed_bytes_end(&mut self)
Informs the encoder that no further input bytes are available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
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