#[repr(i32)]pub enum CompressionLevel {
Optimal = 0,
Fastest = 1,
NoCompression = 2,
SmallestSize = 3,
}Expand description
Specifies whether a compression operation emphasizes speed or size.
Variants§
Optimal = 0
Balances compression and speed.
Fastest = 1
Completes as quickly as possible, even if the result is not optimally compressed.
NoCompression = 2
Performs no compression.
SmallestSize = 3
Produces the smallest result, even if the operation takes longer.
Trait Implementations§
Source§impl Clone for CompressionLevel
impl Clone for CompressionLevel
impl Copy for CompressionLevel
Source§impl Debug for CompressionLevel
impl Debug for CompressionLevel
Source§impl Default for CompressionLevel
impl Default for CompressionLevel
impl Eq for CompressionLevel
Source§impl Hash for CompressionLevel
impl Hash for CompressionLevel
Source§impl PartialEq for CompressionLevel
impl PartialEq for CompressionLevel
impl StructuralPartialEq for CompressionLevel
Auto Trait Implementations§
impl Freeze for CompressionLevel
impl RefUnwindSafe for CompressionLevel
impl Send for CompressionLevel
impl Sync for CompressionLevel
impl Unpin for CompressionLevel
impl UnsafeUnpin for CompressionLevel
impl UnwindSafe for CompressionLevel
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more