pub struct EtaLog { /* private fields */ }Expand description
A log of eta-reduction outcomes with timestamps.
Implementations§
Source§impl EtaLog
impl EtaLog
Sourcepub fn record(&mut self, outcome: EtaOutcome)
pub fn record(&mut self, outcome: EtaOutcome)
Records an outcome.
Sourcepub fn count(&self, target: EtaOutcome) -> usize
pub fn count(&self, target: EtaOutcome) -> usize
Returns the count of a specific outcome.
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Returns the success rate (0.0–1.0).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EtaLog
impl RefUnwindSafe for EtaLog
impl Send for EtaLog
impl Sync for EtaLog
impl Unpin for EtaLog
impl UnsafeUnpin for EtaLog
impl UnwindSafe for EtaLog
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