pub struct InternerStats {
pub hits: u64,
pub misses: u64,
pub total_bytes: usize,
}Expand description
Statistics for an interner.
Fields§
§hits: u64Cache hits.
misses: u64Cache misses (new strings interned).
total_bytes: usizeTotal bytes interned.
Implementations§
Trait Implementations§
Source§impl Clone for InternerStats
impl Clone for InternerStats
Source§fn clone(&self) -> InternerStats
fn clone(&self) -> InternerStats
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 moreSource§impl Debug for InternerStats
impl Debug for InternerStats
Source§impl Default for InternerStats
impl Default for InternerStats
Source§fn default() -> InternerStats
fn default() -> InternerStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InternerStats
impl RefUnwindSafe for InternerStats
impl Send for InternerStats
impl Sync for InternerStats
impl Unpin for InternerStats
impl UnwindSafe for InternerStats
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