Struct parquet2::compression::ZstdLevel
source · [−]pub struct ZstdLevel(_);
Expand description
Represents a valid zstd compression level.
Implementations
sourceimpl ZstdLevel
impl ZstdLevel
sourcepub fn try_new(level: i32) -> Result<Self, Error>
pub fn try_new(level: i32) -> Result<Self, 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 zstd compression level.
Trait Implementations
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more