Struct zstd::block::Decompressor
source · [−]pub struct Decompressor { /* private fields */ }
Expand description
Allows to decompress independently multiple blocks of data.
This reduces memory usage compared to calling decompress
multiple times.
Implementations
sourceimpl Decompressor
impl Decompressor
sourcepub fn with_dict(dict: Vec<u8>) -> Self
pub fn with_dict(dict: Vec<u8>) -> Self
Creates a new zstd decompressor, using the given dictionary.
Trait Implementations
sourceimpl Default for Decompressor
impl Default for Decompressor
sourcefn default() -> Decompressor
fn default() -> Decompressor
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Decompressor
impl Send for Decompressor
impl !Sync for Decompressor
impl Unpin for Decompressor
impl UnwindSafe for Decompressor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more