pub struct TypeClassStats {
pub cache_hits: u64,
pub cache_misses: u64,
pub total_lookups: u64,
pub instances_registered: u64,
pub classes_registered: u64,
}Expand description
Statistics about typeclass resolution.
Fields§
§cache_hits: u64Number of successful instance lookups.
cache_misses: u64Number of failed instance lookups.
total_lookups: u64Total instance resolution calls.
instances_registered: u64Number of instances registered.
classes_registered: u64Number of classes registered.
Implementations§
Trait Implementations§
Source§impl Clone for TypeClassStats
impl Clone for TypeClassStats
Source§fn clone(&self) -> TypeClassStats
fn clone(&self) -> TypeClassStats
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 TypeClassStats
impl Debug for TypeClassStats
Source§impl Default for TypeClassStats
impl Default for TypeClassStats
Source§fn default() -> TypeClassStats
fn default() -> TypeClassStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TypeClassStats
impl RefUnwindSafe for TypeClassStats
impl Send for TypeClassStats
impl Sync for TypeClassStats
impl Unpin for TypeClassStats
impl UnsafeUnpin for TypeClassStats
impl UnwindSafe for TypeClassStats
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