pub struct CompressionStats {
pub original_bytes: usize,
pub compressed_bytes: usize,
pub compression_ratio: f64,
pub original_lines: usize,
pub compressed_lines: usize,
pub line_reduction: f64,
}
Expand description
Compression statistics
Fields§
§original_bytes: usize
§compressed_bytes: usize
§compression_ratio: f64
§original_lines: usize
§compressed_lines: usize
§line_reduction: f64
Implementations§
Source§impl CompressionStats
impl CompressionStats
Sourcepub fn meets_target(&self, level: CompressionLevel) -> bool
pub fn meets_target(&self, level: CompressionLevel) -> bool
Check if target compression was achieved
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