pub struct CompressionAnalyzer { /* private fields */ }Expand description
Compression method analyzer
Implementations§
Source§impl CompressionAnalyzer
impl CompressionAnalyzer
Sourcepub fn analyze_compression_mask(mask: u8) -> Vec<&'static str>
pub fn analyze_compression_mask(mask: u8) -> Vec<&'static str>
Analyze compression methods from a mask
Sourcepub fn add_result(
&mut self,
file_name: &str,
block_index: usize,
compression_mask: u8,
original_size: u64,
compressed_size: u64,
)
pub fn add_result( &mut self, file_name: &str, block_index: usize, compression_mask: u8, original_size: u64, compressed_size: u64, )
Add analysis result
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate compression statistics report
Trait Implementations§
Source§impl Debug for CompressionAnalyzer
impl Debug for CompressionAnalyzer
Auto Trait Implementations§
impl Freeze for CompressionAnalyzer
impl RefUnwindSafe for CompressionAnalyzer
impl Send for CompressionAnalyzer
impl Sync for CompressionAnalyzer
impl Unpin for CompressionAnalyzer
impl UnsafeUnpin for CompressionAnalyzer
impl UnwindSafe for CompressionAnalyzer
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> 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