pub struct ZeroCopyStats {
pub bytes_parsed_zerocopy: usize,
pub bytes_parsed_allocated: usize,
pub allocations_avoided: usize,
pub strings_interned: usize,
}Expand description
Memory-efficient parsing statistics
Fields§
§bytes_parsed_zerocopy: usize§bytes_parsed_allocated: usize§allocations_avoided: usize§strings_interned: usizeImplementations§
Source§impl ZeroCopyStats
impl ZeroCopyStats
Sourcepub fn efficiency_ratio(&self) -> f64
pub fn efficiency_ratio(&self) -> f64
Calculate memory efficiency ratio
Sourcepub fn allocation_avoidance_ratio(&self) -> f64
pub fn allocation_avoidance_ratio(&self) -> f64
Calculate allocation avoidance ratio
Trait Implementations§
Source§impl Debug for ZeroCopyStats
impl Debug for ZeroCopyStats
Source§impl Default for ZeroCopyStats
impl Default for ZeroCopyStats
Source§fn default() -> ZeroCopyStats
fn default() -> ZeroCopyStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ZeroCopyStats
impl RefUnwindSafe for ZeroCopyStats
impl Send for ZeroCopyStats
impl Sync for ZeroCopyStats
impl Unpin for ZeroCopyStats
impl UnsafeUnpin for ZeroCopyStats
impl UnwindSafe for ZeroCopyStats
Blanket Implementations§
impl<T> Allocation for T
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