pub struct OptimizationOutcome<M> {
pub fitness: f64,
pub metrics: M,
}Expand description
Outcome of evaluating a candidate.
Fields§
§fitness: f64Fitness score produced by the evaluation function. Higher is better.
metrics: MAdditional metrics reported by the evaluator.
Trait Implementations§
Source§impl<M: Clone> Clone for OptimizationOutcome<M>
impl<M: Clone> Clone for OptimizationOutcome<M>
Source§fn clone(&self) -> OptimizationOutcome<M>
fn clone(&self) -> OptimizationOutcome<M>
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 moreAuto Trait Implementations§
impl<M> Freeze for OptimizationOutcome<M>where
M: Freeze,
impl<M> RefUnwindSafe for OptimizationOutcome<M>where
M: RefUnwindSafe,
impl<M> Send for OptimizationOutcome<M>where
M: Send,
impl<M> Sync for OptimizationOutcome<M>where
M: Sync,
impl<M> Unpin for OptimizationOutcome<M>where
M: Unpin,
impl<M> UnwindSafe for OptimizationOutcome<M>where
M: UnwindSafe,
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