pub struct CompressionStats {
pub block_count: usize,
pub total_compressed_size: u64,
pub total_uncompressed_size: u64,
pub compression_ratio: f64,
pub space_saved: u64,
pub average_block_size: u64,
}Expand description
Compression statistics
Fields§
§block_count: usize§total_compressed_size: u64§total_uncompressed_size: u64§compression_ratio: f64§space_saved: u64§average_block_size: u64Implementations§
Source§impl CompressionStats
impl CompressionStats
Sourcepub fn efficiency_percent(&self) -> f64
pub fn efficiency_percent(&self) -> f64
Get compression efficiency as a percentage
Sourcepub fn is_effective(&self) -> bool
pub fn is_effective(&self) -> bool
Check if compression was effective
Trait Implementations§
Source§impl Clone for CompressionStats
impl Clone for CompressionStats
Source§fn clone(&self) -> CompressionStats
fn clone(&self) -> CompressionStats
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 moreAuto Trait Implementations§
impl Freeze for CompressionStats
impl RefUnwindSafe for CompressionStats
impl Send for CompressionStats
impl Sync for CompressionStats
impl Unpin for CompressionStats
impl UnwindSafe for CompressionStats
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