pub struct ZstdLevel(_);
Available on crate feature
io_parquet
only.Expand description
Represents a valid zstd compression level.
Implementations§
source§impl ZstdLevel
impl ZstdLevel
sourcepub fn try_new(level: i32) -> Result<ZstdLevel, Error>
pub fn try_new(level: i32) -> Result<ZstdLevel, Error>
Attempts to create a zstd compression level from a given compression level.
Compression levels must be valid (i.e. be acceptable for zstd::compression_level_range
).
sourcepub fn compression_level(&self) -> i32
pub fn compression_level(&self) -> i32
Returns the compression level.
Trait Implementations§
source§impl PartialEq<ZstdLevel> for ZstdLevel
impl PartialEq<ZstdLevel> for ZstdLevel
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.