pub struct ErasureStats {
pub sorts_erased: usize,
pub pis_erased: usize,
pub terms_kept: usize,
}Expand description
Statistics collected during type erasure.
Fields§
§sorts_erased: usizeNumber of sorts (universes) erased.
pis_erased: usizeNumber of Pi-types erased.
terms_kept: usizeNumber of computational terms kept.
Implementations§
Source§impl ErasureStats
impl ErasureStats
Sourcepub fn ratio_erased(&self) -> f64
pub fn ratio_erased(&self) -> f64
Fraction of nodes that were erased (sorts + pis out of total).
Returns 0.0 when no nodes have been recorded.
Trait Implementations§
Source§impl Clone for ErasureStats
impl Clone for ErasureStats
Source§fn clone(&self) -> ErasureStats
fn clone(&self) -> ErasureStats
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 ErasureStats
impl Debug for ErasureStats
Source§impl Default for ErasureStats
impl Default for ErasureStats
Source§fn default() -> ErasureStats
fn default() -> ErasureStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ErasureStats
impl RefUnwindSafe for ErasureStats
impl Send for ErasureStats
impl Sync for ErasureStats
impl Unpin for ErasureStats
impl UnsafeUnpin for ErasureStats
impl UnwindSafe for ErasureStats
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