pub struct HashConsStats {
pub hits: u64,
pub misses: u64,
pub total: u64,
pub unique_nodes: usize,
}Expand description
Statistics snapshot emitted by HashConsArena::stats.
Fields§
§hits: u64Number of mk_* calls that found an existing node (cache hit).
misses: u64Number of mk_* calls that inserted a new node (cache miss).
total: u64Total number of mk_* calls (hits + misses).
unique_nodes: usizeNumber of distinct nodes actually stored in the arena.
Implementations§
Source§impl HashConsStats
impl HashConsStats
Trait Implementations§
Source§impl Clone for HashConsStats
impl Clone for HashConsStats
Source§fn clone(&self) -> HashConsStats
fn clone(&self) -> HashConsStats
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 HashConsStats
impl Debug for HashConsStats
Source§impl Display for HashConsStats
impl Display for HashConsStats
Source§impl PartialEq for HashConsStats
impl PartialEq for HashConsStats
impl Copy for HashConsStats
impl StructuralPartialEq for HashConsStats
Auto Trait Implementations§
impl Freeze for HashConsStats
impl RefUnwindSafe for HashConsStats
impl Send for HashConsStats
impl Sync for HashConsStats
impl Unpin for HashConsStats
impl UnsafeUnpin for HashConsStats
impl UnwindSafe for HashConsStats
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