pub struct ZstdCompressor { /* private fields */ }Expand description
Zstd compressor implementation
Uses the Zstandard compression algorithm for balanced speed and ratio. Supports configurable compression levels.
Implementations§
Source§impl ZstdCompressor
impl ZstdCompressor
Sourcepub fn new(level: CompressionLevel) -> Self
pub fn new(level: CompressionLevel) -> Self
Create a new Zstd compressor with the given compression level
Sourcepub fn default_level() -> Self
pub fn default_level() -> Self
Create a Zstd compressor with default compression
Trait Implementations§
Source§impl Clone for ZstdCompressor
impl Clone for ZstdCompressor
Source§impl Compressor for ZstdCompressor
impl Compressor for ZstdCompressor
Auto Trait Implementations§
impl Forget for ZstdCompressor
impl Freeze for ZstdCompressor
impl RefUnwindSafe for ZstdCompressor
impl Send for ZstdCompressor
impl Sync for ZstdCompressor
impl Unpin for ZstdCompressor
impl UnsafeUnpin for ZstdCompressor
impl UnwindSafe for ZstdCompressor
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