pub struct ComparisonFairness { /* private fields */ }Expand description
Fairness model that allocates equal comparison budgets to all algorithms
Implementations§
Source§impl ComparisonFairness
impl ComparisonFairness
Sourcepub fn get_budget(&self) -> usize
pub fn get_budget(&self) -> usize
Get the current budget per step
Sourcepub fn set_budget(&mut self, budget: usize)
pub fn set_budget(&mut self, budget: usize)
Set a new budget per step
Trait Implementations§
Source§impl Debug for ComparisonFairness
impl Debug for ComparisonFairness
Source§impl Default for ComparisonFairness
impl Default for ComparisonFairness
Auto Trait Implementations§
impl Freeze for ComparisonFairness
impl RefUnwindSafe for ComparisonFairness
impl Send for ComparisonFairness
impl Sync for ComparisonFairness
impl Unpin for ComparisonFairness
impl UnwindSafe for ComparisonFairness
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more