pub enum BrotliLevel {
Fastest,
Balanced,
Best,
Numeric(u32),
Unknown,
}Expand description
Brotli compression level labels.
Variants§
Fastest
Prefer fastest compression.
Balanced
Balance speed and compressed size.
Best
Prefer best compressed size.
Numeric(u32)
Caller-specified numeric level.
Unknown
Unknown or intentionally unspecified level.
Implementations§
Trait Implementations§
Source§impl Clone for BrotliLevel
impl Clone for BrotliLevel
Source§fn clone(&self) -> BrotliLevel
fn clone(&self) -> BrotliLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrotliLevel
impl Debug for BrotliLevel
Source§impl Default for BrotliLevel
impl Default for BrotliLevel
Source§fn default() -> BrotliLevel
fn default() -> BrotliLevel
Returns the “default value” for a type. Read more
Source§impl Hash for BrotliLevel
impl Hash for BrotliLevel
Source§impl Ord for BrotliLevel
impl Ord for BrotliLevel
Source§fn cmp(&self, other: &BrotliLevel) -> Ordering
fn cmp(&self, other: &BrotliLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BrotliLevel
impl PartialEq for BrotliLevel
Source§fn eq(&self, other: &BrotliLevel) -> bool
fn eq(&self, other: &BrotliLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BrotliLevel
impl PartialOrd for BrotliLevel
impl Copy for BrotliLevel
impl Eq for BrotliLevel
impl StructuralPartialEq for BrotliLevel
Auto Trait Implementations§
impl Freeze for BrotliLevel
impl RefUnwindSafe for BrotliLevel
impl Send for BrotliLevel
impl Sync for BrotliLevel
impl Unpin for BrotliLevel
impl UnsafeUnpin for BrotliLevel
impl UnwindSafe for BrotliLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more