#[non_exhaustive]pub enum EncodingStrategy {
BlockWise {
num_clusters: usize,
num_iterations: usize,
},
Single,
}Expand description
Strategy for using Huffman Tables
- EncodingStrategy::Single - every block of 900k uses a single huffman code table
- EncodingStrategy::BlockWise - usage of code tables in 50 byte chunks is optimized using Lloyd’s algorithm with given parameters
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.
Trait Implementations§
Source§impl Clone for EncodingStrategy
impl Clone for EncodingStrategy
impl Copy for EncodingStrategy
Auto Trait Implementations§
impl Freeze for EncodingStrategy
impl RefUnwindSafe for EncodingStrategy
impl Send for EncodingStrategy
impl Sync for EncodingStrategy
impl Unpin for EncodingStrategy
impl UnsafeUnpin for EncodingStrategy
impl UnwindSafe for EncodingStrategy
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