Enum zff::CompressionAlgorithm
source · [−]#[repr(u8)]
#[non_exhaustive]
pub enum CompressionAlgorithm {
None,
Zstd,
Lz4,
}Expand description
Defines all compression algorithms, which are implemented in zff.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No compression - encoded as 0 in the header.
Zstd
Zstd compression (default) - encoded as 1 in the header.
Lz4
LZ4 compression - encoded as 2 in the header. LZ4 frame format is used (not the LZ4 block format) for compression.
Trait Implementations
sourceimpl Clone for CompressionAlgorithm
impl Clone for CompressionAlgorithm
sourcefn clone(&self) -> CompressionAlgorithm
fn clone(&self) -> CompressionAlgorithm
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CompressionAlgorithm
impl Debug for CompressionAlgorithm
sourceimpl Display for CompressionAlgorithm
impl Display for CompressionAlgorithm
sourceimpl From<&'_ str> for CompressionAlgorithm
impl From<&'_ str> for CompressionAlgorithm
sourcefn from(algorithm: &str) -> CompressionAlgorithm
fn from(algorithm: &str) -> CompressionAlgorithm
Converts to this type from the input type.
impl Eq for CompressionAlgorithm
impl StructuralEq for CompressionAlgorithm
impl StructuralPartialEq for CompressionAlgorithm
Auto Trait Implementations
impl RefUnwindSafe for CompressionAlgorithm
impl Send for CompressionAlgorithm
impl Sync for CompressionAlgorithm
impl Unpin for CompressionAlgorithm
impl UnwindSafe for CompressionAlgorithm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more