pub struct CompressionStats {
pub unique_strings: usize,
pub total_string_bytes: usize,
pub domain_count: usize,
pub predicate_count: usize,
pub variable_count: usize,
pub estimated_original_size: usize,
pub compact_size: usize,
}Expand description
Compression statistics for compact schemas.
Fields§
§unique_strings: usizeNumber of unique strings.
total_string_bytes: usizeTotal bytes used by strings.
domain_count: usizeNumber of domains.
predicate_count: usizeNumber of predicates.
variable_count: usizeNumber of variables.
estimated_original_size: usizeEstimated original size in bytes.
compact_size: usizeCompact representation size in bytes.
Implementations§
Source§impl CompressionStats
impl CompressionStats
Sourcepub fn compression_ratio(&self) -> f64
pub fn compression_ratio(&self) -> f64
Calculate compression ratio.
Sourcepub fn space_savings(&self) -> f64
pub fn space_savings(&self) -> f64
Calculate space savings as a percentage.
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