Struct abc::Candidate
[−]
[src]
pub struct Candidate<S: Clone + Send + Sync + 'static> { pub solution: S, pub fitness: f64, }
One solution being explored by the hive, plus additional data.
This implementation was written with the expectation that the
evaluate_fitness
method may be very expensive, so the Candidate
struct caches the
computed fitness of its solution.
Fields
solution: S
Actual candidate solution.
fitness: f64
Cached fitness of the solution.
Methods
impl<S: Clone + Send + Sync + 'static> Candidate<S>
[src]
Trait Implementations
impl<S: Clone + Clone + Send + Sync + 'static> Clone for Candidate<S>
[src]
fn clone(&self) -> Candidate<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<S: Clone + Send + Sync + 'static> Debug for Candidate<S> where
S: Debug,
[src]
S: Debug,