pub struct ZstdDictCompressor { /* private fields */ }Expand description
Dictionary-aware compressor
Implementations§
Source§impl ZstdDictCompressor
impl ZstdDictCompressor
Sourcepub fn new(dictionary: ZstdDictionary) -> Self
pub fn new(dictionary: ZstdDictionary) -> Self
Create a new dictionary compressor
Sourcepub fn with_level(dictionary: ZstdDictionary, level: CompressionLevel) -> Self
pub fn with_level(dictionary: ZstdDictionary, level: CompressionLevel) -> Self
Create with compression level
Sourcepub fn dictionary(&self) -> &ZstdDictionary
pub fn dictionary(&self) -> &ZstdDictionary
Get the dictionary
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZstdDictCompressor
impl RefUnwindSafe for ZstdDictCompressor
impl Send for ZstdDictCompressor
impl Sync for ZstdDictCompressor
impl Unpin for ZstdDictCompressor
impl UnwindSafe for ZstdDictCompressor
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