pub enum PadlessCompressionResult {
BigEndianBest {
compressed_data: Vec<u8>,
le_size: usize,
},
LittleEndianBest {
compressed_data: Vec<u8>,
be_size: usize,
},
Neither {
be_size: usize,
le_size: usize,
},
}Expand description
Result of attempting padless compression by interpreting the input data as both big endian and little endian big integers.
This enum represents which interpretation produced the best padless compression result, or if neither produced padless compression (both were larger than the original).
Variants§
BigEndianBest
Big endian padless compression produced the smallest output. Contains the compressed data and the size of the little endian attempt for comparison.
Fields
LittleEndianBest
Little endian padless compression produced the smallest output. Contains the compressed data and the size of the big endian attempt for comparison.
Fields
Neither
Neither padless compression method produced a smaller output than the original. Contains sizes for both attempts.
Trait Implementations§
Source§impl Clone for PadlessCompressionResult
impl Clone for PadlessCompressionResult
Source§fn clone(&self) -> PadlessCompressionResult
fn clone(&self) -> PadlessCompressionResult
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 PadlessCompressionResult
impl Debug for PadlessCompressionResult
Source§impl PartialEq for PadlessCompressionResult
impl PartialEq for PadlessCompressionResult
impl StructuralPartialEq for PadlessCompressionResult
Auto Trait Implementations§
impl Freeze for PadlessCompressionResult
impl RefUnwindSafe for PadlessCompressionResult
impl Send for PadlessCompressionResult
impl Sync for PadlessCompressionResult
impl Unpin for PadlessCompressionResult
impl UnwindSafe for PadlessCompressionResult
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