pub struct CompressStats {
pub total_lines: usize,
pub kept_lines: usize,
pub omitted_lines: usize,
pub original_tokens: usize,
pub compressed_tokens: usize,
pub saved_percent: u32,
}Expand description
Deterministic statistics about a compression pass.
Fields§
§total_lines: usize§kept_lines: usize§omitted_lines: usize§original_tokens: usize§compressed_tokens: usize§saved_percent: u32Trait Implementations§
Source§impl Clone for CompressStats
impl Clone for CompressStats
Source§fn clone(&self) -> CompressStats
fn clone(&self) -> CompressStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompressStats
Source§impl Debug for CompressStats
impl Debug for CompressStats
impl Eq for CompressStats
Source§impl PartialEq for CompressStats
impl PartialEq for CompressStats
Source§impl Serialize for CompressStats
impl Serialize for CompressStats
impl StructuralPartialEq for CompressStats
Auto Trait Implementations§
impl Freeze for CompressStats
impl RefUnwindSafe for CompressStats
impl Send for CompressStats
impl Sync for CompressStats
impl Unpin for CompressStats
impl UnsafeUnpin for CompressStats
impl UnwindSafe for CompressStats
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