pub enum Level {
Show 22 variants
Zero,
One,
Two,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
Ten,
Eleven,
Twelve,
Thirteen,
Fourteen,
Fifteen,
Sixteen,
Seventeen,
Eighteen,
Nineteen,
Twenty,
TwentyOne,
}Expand description
Level represent the compression level this value is include between 1 to 9.
1 optimize the compression time,
9 optimize the size of the output.
For bzip2:
Oneis convert inbzip2::Compression::Fastest,Nineinbzip2::Compression::Bestand other value is convert in `bzip2::Compression::Default.
Variants§
Zero
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Eleven
Twelve
Thirteen
Fourteen
Fifteen
Sixteen
Seventeen
Eighteen
Nineteen
Twenty
TwentyOne
Trait Implementations§
Source§impl From<Level> for Compression
Available on crate feature gz only.
impl From<Level> for Compression
Available on crate feature
gz only.Source§impl From<Level> for Compression
Available on crate feature bz2 only.
impl From<Level> for Compression
Available on crate feature
bz2 only.impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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