pub struct Context<C, T>where
C: Chromosome,{
pub ecosystem: Ecosystem<C>,
pub best: T,
pub index: usize,
pub metrics: MetricSet,
pub score: Option<Score>,
pub front: Arc<RwLock<Front<Phenotype<C>>>>,
pub objective: Objective,
pub problem: Arc<dyn Problem<C, T>>,
}
Fields§
§ecosystem: Ecosystem<C>
§best: T
§index: usize
§metrics: MetricSet
§score: Option<Score>
§front: Arc<RwLock<Front<Phenotype<C>>>>
§objective: Objective
§problem: Arc<dyn Problem<C, T>>
Trait Implementations§
Auto Trait Implementations§
impl<C, T> Freeze for Context<C, T>where
T: Freeze,
impl<C, T> !RefUnwindSafe for Context<C, T>
impl<C, T> Send for Context<C, T>where
T: Send,
impl<C, T> Sync for Context<C, T>where
T: Sync,
impl<C, T> Unpin for Context<C, T>
impl<C, T> !UnwindSafe for Context<C, T>
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