pub struct ZstdLevel(_);
Available on crate feature
feature
only.Expand description
Represents a valid zstd compression level.
Implementations
impl ZstdLevel
impl ZstdLevel
Trait Implementations
impl CompressionLevel<i32> for ZstdLevel
impl CompressionLevel<i32> for ZstdLevel
const MINIMUM_LEVEL: i32 = 1i32
const MAXIMUM_LEVEL: i32 = 22i32
fn is_valid_level(level: T) -> Result<(), Error>
fn is_valid_level(level: T) -> Result<(), Error>
Tests if the provided compression level is valid.
impl Copy for ZstdLevel
impl Eq for ZstdLevel
impl StructuralEq for ZstdLevel
impl StructuralPartialEq for ZstdLevel
Auto Trait Implementations
impl RefUnwindSafe for ZstdLevel
impl Send for ZstdLevel
impl Sync for ZstdLevel
impl Unpin for ZstdLevel
impl UnwindSafe for ZstdLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.