pub enum CompressionAlgorithm {
None,
RLE,
Delta,
Huffman,
LZ77,
SparseOptimized,
Adaptive,
}
Expand description
Compression algorithms for sparse matrix data
Variants§
None
No compression
RLE
Run-Length Encoding
Delta
Delta encoding for indices
Huffman
Huffman coding
LZ77
LZ77 compression
SparseOptimized
Sparse-specific compression
Adaptive
Hybrid adaptive compression
Implementations§
Source§impl CompressionAlgorithm
impl CompressionAlgorithm
Sourcepub fn supports_adaptive(&self) -> bool
pub fn supports_adaptive(&self) -> bool
Check if the algorithm supports adaptive compression
Sourcepub fn expected_compression_ratio(&self) -> f64
pub fn expected_compression_ratio(&self) -> f64
Get expected compression ratio for the algorithm
Sourcepub fn compression_speed(&self) -> f64
pub fn compression_speed(&self) -> f64
Get relative compression speed (higher = faster)
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get description of the algorithm
Trait Implementations§
Source§impl Clone for CompressionAlgorithm
impl Clone for CompressionAlgorithm
Source§fn clone(&self) -> CompressionAlgorithm
fn clone(&self) -> CompressionAlgorithm
Returns a duplicate 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 Debug for CompressionAlgorithm
impl Debug for CompressionAlgorithm
Source§impl Hash for CompressionAlgorithm
impl Hash for CompressionAlgorithm
Source§impl PartialEq for CompressionAlgorithm
impl PartialEq for CompressionAlgorithm
impl Copy for CompressionAlgorithm
impl Eq for CompressionAlgorithm
impl StructuralPartialEq for CompressionAlgorithm
Auto Trait Implementations§
impl Freeze for CompressionAlgorithm
impl RefUnwindSafe for CompressionAlgorithm
impl Send for CompressionAlgorithm
impl Sync for CompressionAlgorithm
impl Unpin for CompressionAlgorithm
impl UnwindSafe for CompressionAlgorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more