pub struct Compressor { /* private fields */ }
Expand description
Compression utility struct
Implementations§
Source§impl Compressor
impl Compressor
pub fn new(format: CompressionFormat) -> Self
pub fn with_level(self, level: CompressionLevel) -> Self
Auto Trait Implementations§
impl Freeze for Compressor
impl RefUnwindSafe for Compressor
impl Send for Compressor
impl Sync for Compressor
impl Unpin for Compressor
impl UnwindSafe for Compressor
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