pub struct BrotliLevel(_);
Available on crate feature
io_parquet
only.Expand description
Represents a valid brotli compression level.
Implementations
impl BrotliLevel
impl BrotliLevel
pub fn try_new(level: u32) -> Result<BrotliLevel, Error>
pub fn try_new(level: u32) -> Result<BrotliLevel, Error>
Attempts to create a brotli compression level.
Compression levels must be valid.
pub fn compression_level(&self) -> u32
pub fn compression_level(&self) -> u32
Returns the compression level.
Trait Implementations
impl Clone for BrotliLevel
impl Clone for BrotliLevel
fn clone(&self) -> BrotliLevel
fn clone(&self) -> BrotliLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for BrotliLevel
impl Debug for BrotliLevel
impl Default for BrotliLevel
impl Default for BrotliLevel
fn default() -> BrotliLevel
fn default() -> BrotliLevel
Returns the “default value” for a type. Read more
impl Hash for BrotliLevel
impl Hash for BrotliLevel
impl PartialEq<BrotliLevel> for BrotliLevel
impl PartialEq<BrotliLevel> for BrotliLevel
fn eq(&self, other: &BrotliLevel) -> bool
fn eq(&self, other: &BrotliLevel) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for BrotliLevel
impl Eq for BrotliLevel
impl StructuralEq for BrotliLevel
impl StructuralPartialEq for BrotliLevel
Auto Trait Implementations
impl RefUnwindSafe for BrotliLevel
impl Send for BrotliLevel
impl Sync for BrotliLevel
impl Unpin for BrotliLevel
impl UnwindSafe for BrotliLevel
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<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.