pub struct SimpleFitness { /* private fields */ }Expand description
Simple fitness result that only consists of a ScoreCard.
In case you don’t need to retain any additional state, you can use this struct.
Implementations§
Source§impl SimpleFitness
impl SimpleFitness
pub fn new(scores: Scores) -> SimpleFitness
Trait Implementations§
Source§impl Fitness for SimpleFitness
impl Fitness for SimpleFitness
fn score_card(&self) -> &ScoreCard
Auto Trait Implementations§
impl Freeze for SimpleFitness
impl RefUnwindSafe for SimpleFitness
impl Send for SimpleFitness
impl Sync for SimpleFitness
impl Unpin for SimpleFitness
impl UnwindSafe for SimpleFitness
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