#[repr(u64)]pub enum compression_algorithm {
LZFSE = 2_049,
LZ4 = 256,
LZ4_RAW = 257,
LZMA = 774,
ZLIB = 517,
BROTLI = 2_818,
LZBITMAP = 1_794,
}
Expand description
A structure for values that represent compression algorithms.
Variants§
LZFSE = 2_049
The LZFSE compression algorithm, that is recommended for use on Apple platforms.
LZ4 = 256
The LZ4 compression algorithm, that is recommended for fast compression.
LZ4_RAW = 257
The LZ4 compression algorithm, without frame headers.
LZMA = 774
The LZMA compression algorithm, that is recommended for high-compression ratio.
ZLIB = 517
The zlib compression algorithm, that is recommended for cross-platform compression.
BROTLI = 2_818
The Brotli compression algorithm, which is recommended for text compression.
LZBITMAP = 1_794
The LZBITMAP compression algorithm, which is designed to exploit the vector instruction set of current CPUs.
Trait Implementations§
Source§impl Clone for compression_algorithm
impl Clone for compression_algorithm
Source§fn clone(&self) -> compression_algorithm
fn clone(&self) -> compression_algorithm
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for compression_algorithm
impl Debug for compression_algorithm
Source§impl Ord for compression_algorithm
impl Ord for compression_algorithm
Source§fn cmp(&self, other: &compression_algorithm) -> Ordering
fn cmp(&self, other: &compression_algorithm) -> Ordering
1.21.0 · 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 compression_algorithm
impl PartialEq for compression_algorithm
Source§impl PartialOrd for compression_algorithm
impl PartialOrd for compression_algorithm
impl Copy for compression_algorithm
impl Eq for compression_algorithm
impl StructuralPartialEq for compression_algorithm
Auto Trait Implementations§
impl Freeze for compression_algorithm
impl RefUnwindSafe for compression_algorithm
impl Send for compression_algorithm
impl Sync for compression_algorithm
impl Unpin for compression_algorithm
impl UnwindSafe for compression_algorithm
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