Struct polars_io::parquet::BrotliLevel
[−]pub struct BrotliLevel(_);
Available on crate feature
feature
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 CompressionLevel<u32> for BrotliLevel
impl CompressionLevel<u32> for BrotliLevel
const MINIMUM_LEVEL: u32 = 0u32
const MAXIMUM_LEVEL: u32 = 11u32
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 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
fn ne(&self, other: &BrotliLevel) -> bool
fn ne(&self, other: &BrotliLevel) -> bool
This method tests for !=
.
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<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.