pub struct CompressionAnalysisResult {
pub file_name: String,
pub block_index: usize,
pub compression_mask: u8,
pub methods: Vec<&'static str>,
pub original_size: u64,
pub compressed_size: u64,
pub ratio: f64,
}Expand description
Result of compression analysis for a single file
Fields§
§file_name: StringName of the file analyzed
block_index: usizeBlock index in the archive
compression_mask: u8Compression mask byte
methods: Vec<&'static str>List of compression methods used
original_size: u64Original uncompressed size
compressed_size: u64Compressed size in archive
ratio: f64Compression ratio (compressed/original)
Trait Implementations§
Source§impl Clone for CompressionAnalysisResult
impl Clone for CompressionAnalysisResult
Auto Trait Implementations§
impl Freeze for CompressionAnalysisResult
impl RefUnwindSafe for CompressionAnalysisResult
impl Send for CompressionAnalysisResult
impl Sync for CompressionAnalysisResult
impl Unpin for CompressionAnalysisResult
impl UnsafeUnpin for CompressionAnalysisResult
impl UnwindSafe for CompressionAnalysisResult
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