pub enum Bzip2Level {
Fastest,
Balanced,
Best,
Numeric(u32),
Unknown,
}Expand description
Bzip2 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 Bzip2Level
impl Clone for Bzip2Level
Source§fn clone(&self) -> Bzip2Level
fn clone(&self) -> Bzip2Level
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 Bzip2Level
impl Debug for Bzip2Level
Source§impl Default for Bzip2Level
impl Default for Bzip2Level
Source§fn default() -> Bzip2Level
fn default() -> Bzip2Level
Returns the “default value” for a type. Read more
Source§impl Hash for Bzip2Level
impl Hash for Bzip2Level
Source§impl Ord for Bzip2Level
impl Ord for Bzip2Level
Source§fn cmp(&self, other: &Bzip2Level) -> Ordering
fn cmp(&self, other: &Bzip2Level) -> 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 Bzip2Level
impl PartialEq for Bzip2Level
Source§fn eq(&self, other: &Bzip2Level) -> bool
fn eq(&self, other: &Bzip2Level) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Bzip2Level
impl PartialOrd for Bzip2Level
impl Copy for Bzip2Level
impl Eq for Bzip2Level
impl StructuralPartialEq for Bzip2Level
Auto Trait Implementations§
impl Freeze for Bzip2Level
impl RefUnwindSafe for Bzip2Level
impl Send for Bzip2Level
impl Sync for Bzip2Level
impl Unpin for Bzip2Level
impl UnsafeUnpin for Bzip2Level
impl UnwindSafe for Bzip2Level
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