pub struct CompressionLevel(/* private fields */);Expand description
Level of compression to use for for the compressors.
Valid values are 1-12. See libdeflater documentation on levels.
Implementations§
Trait Implementations§
Source§impl Clone for CompressionLevel
impl Clone for CompressionLevel
Source§fn clone(&self) -> CompressionLevel
fn clone(&self) -> CompressionLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompressionLevel
impl Debug for CompressionLevel
Source§impl From<&CompressionLevel> for u8
impl From<&CompressionLevel> for u8
Source§fn from(level: &CompressionLevel) -> Self
fn from(level: &CompressionLevel) -> Self
Convenience method vor converting CompressionLevel back to a u8.
Source§impl From<CompressionLevel> for u8
impl From<CompressionLevel> for u8
Source§fn from(level: CompressionLevel) -> Self
fn from(level: CompressionLevel) -> Self
Convenience method vor converting CompressionLevel back to a u8.
Source§impl PartialEq for CompressionLevel
impl PartialEq for CompressionLevel
Source§impl TryFrom<u8> for CompressionLevel
impl TryFrom<u8> for CompressionLevel
impl Copy for CompressionLevel
impl Eq for CompressionLevel
impl StructuralPartialEq for CompressionLevel
Auto Trait Implementations§
impl Freeze for CompressionLevel
impl RefUnwindSafe for CompressionLevel
impl Send for CompressionLevel
impl Sync for CompressionLevel
impl Unpin for CompressionLevel
impl UnwindSafe for CompressionLevel
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