#[repr(u32)]pub enum ZSTD_literalCompressionMode_e {
ZSTD_lcm_auto = 0,
ZSTD_lcm_huffman = 1,
ZSTD_lcm_uncompressed = 2,
}
Variants§
ZSTD_lcm_auto = 0
< Automatically determine the compression mode based on the compression level. Negative compression levels will be uncompressed, and positive compression levels will be compressed.
ZSTD_lcm_huffman = 1
< Always attempt Huffman compression. Uncompressed literals will still be emitted if Huffman compression is not profitable.
ZSTD_lcm_uncompressed = 2
< Always emit uncompressed literals.
Trait Implementations§
source§impl Clone for ZSTD_literalCompressionMode_e
impl Clone for ZSTD_literalCompressionMode_e
source§fn clone(&self) -> ZSTD_literalCompressionMode_e
fn clone(&self) -> ZSTD_literalCompressionMode_e
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for ZSTD_literalCompressionMode_e
impl Hash for ZSTD_literalCompressionMode_e
source§impl PartialEq for ZSTD_literalCompressionMode_e
impl PartialEq for ZSTD_literalCompressionMode_e
source§fn eq(&self, other: &ZSTD_literalCompressionMode_e) -> bool
fn eq(&self, other: &ZSTD_literalCompressionMode_e) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ZSTD_literalCompressionMode_e
impl Eq for ZSTD_literalCompressionMode_e
impl StructuralEq for ZSTD_literalCompressionMode_e
impl StructuralPartialEq for ZSTD_literalCompressionMode_e
Auto Trait Implementations§
impl RefUnwindSafe for ZSTD_literalCompressionMode_e
impl Send for ZSTD_literalCompressionMode_e
impl Sync for ZSTD_literalCompressionMode_e
impl Unpin for ZSTD_literalCompressionMode_e
impl UnwindSafe for ZSTD_literalCompressionMode_e
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