pub struct DecidableCounter {
pub true_count: usize,
pub false_count: usize,
}Expand description
A counter that tracks how many decisions have been made and their outcomes.
Fields§
§true_count: usizeNumber of positive decisions.
false_count: usizeNumber of negative decisions.
Implementations§
Trait Implementations§
Source§impl Clone for DecidableCounter
impl Clone for DecidableCounter
Source§fn clone(&self) -> DecidableCounter
fn clone(&self) -> DecidableCounter
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 DecidableCounter
impl Debug for DecidableCounter
Source§impl Default for DecidableCounter
impl Default for DecidableCounter
Source§fn default() -> DecidableCounter
fn default() -> DecidableCounter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecidableCounter
impl RefUnwindSafe for DecidableCounter
impl Send for DecidableCounter
impl Sync for DecidableCounter
impl Unpin for DecidableCounter
impl UnsafeUnpin for DecidableCounter
impl UnwindSafe for DecidableCounter
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