pub struct ZstdDecoder<'ctx, 'input> { /* private fields */ }Expand description
One Zstandard decoder over an admitted input.
Implementations§
Source§impl ZstdDecoder<'_, '_>
impl ZstdDecoder<'_, '_>
Sourcepub fn read_chunk(&mut self, bytes: &mut [u8]) -> Result<usize, CodecError>
pub fn read_chunk(&mut self, bytes: &mut [u8]) -> Result<usize, CodecError>
Reads decoded output into caller-owned storage.
Auto Trait Implementations§
impl<'ctx, 'input> !RefUnwindSafe for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> !Send for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> !Sync for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> !UnwindSafe for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> Freeze for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> Unpin for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> UnsafeUnpin for ZstdDecoder<'ctx, 'input>
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