pub struct BetaStats {
pub total_reductions: u64,
pub max_depth: u32,
pub fuel_exhaustions: u64,
}Expand description
Statistics about beta reduction.
Fields§
§total_reductions: u64Total number of reductions performed.
max_depth: u32Maximum nesting depth encountered.
fuel_exhaustions: u64Number of times fuel was exhausted.
Implementations§
Source§impl BetaStats
impl BetaStats
Sourcepub fn record_reduction(&mut self)
pub fn record_reduction(&mut self)
Record a reduction step.
Sourcepub fn record_fuel_exhaustion(&mut self)
pub fn record_fuel_exhaustion(&mut self)
Record a fuel exhaustion.
Sourcepub fn update_depth(&mut self, depth: u32)
pub fn update_depth(&mut self, depth: u32)
Update max depth.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BetaStats
impl RefUnwindSafe for BetaStats
impl Send for BetaStats
impl Sync for BetaStats
impl Unpin for BetaStats
impl UnsafeUnpin for BetaStats
impl UnwindSafe for BetaStats
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