pub struct SubstStats {
pub bvar_hits: usize,
pub bvar_misses: usize,
pub fvar_hits: usize,
pub nodes_visited: usize,
}Expand description
Profiling counters for substitution operations.
Fields§
§bvar_hits: usizeNumber of successful BVar hits.
bvar_misses: usizeNumber of BVar misses.
fvar_hits: usizeNumber of FVar substitutions performed.
nodes_visited: usizeNumber of nodes visited in total.
Implementations§
Source§impl SubstStats
impl SubstStats
Sourcepub fn merge(&mut self, other: &SubstStats)
pub fn merge(&mut self, other: &SubstStats)
Merge another stats record into self.
Sourcepub fn total_substs(&self) -> usize
pub fn total_substs(&self) -> usize
Total substitutions performed.
Trait Implementations§
Source§impl Clone for SubstStats
impl Clone for SubstStats
Source§impl Debug for SubstStats
impl Debug for SubstStats
Source§impl Default for SubstStats
impl Default for SubstStats
impl Eq for SubstStats
Source§impl PartialEq for SubstStats
impl PartialEq for SubstStats
impl StructuralPartialEq for SubstStats
Auto Trait Implementations§
impl Forget for SubstStats
impl Freeze for SubstStats
impl Move for SubstStats
impl RefUnwindSafe for SubstStats
impl Send for SubstStats
impl Sync for SubstStats
impl Unpin for SubstStats
impl UnsafeUnpin for SubstStats
impl UnwindSafe for SubstStats
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