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§fn clone(&self) -> SubstStats
fn clone(&self) -> SubstStats
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 SubstStats
impl Debug for SubstStats
Source§impl Default for SubstStats
impl Default for SubstStats
Source§fn default() -> SubstStats
fn default() -> SubstStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for SubstStats
impl PartialEq for SubstStats
impl Eq for SubstStats
impl StructuralPartialEq for SubstStats
Auto Trait Implementations§
impl Freeze 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