pub struct Archive<G> { /* private fields */ }Expand description
The MAP-Elites archive: one elite per grid cell.
Implementations§
Source§impl<G> Archive<G>
impl<G> Archive<G>
Sourcepub fn insert(
&mut self,
genome: G,
cost: f64,
descriptor: Vec<f64>,
) -> Insertion
pub fn insert( &mut self, genome: G, cost: f64, descriptor: Vec<f64>, ) -> Insertion
Offers a genome; it enters if its cell is empty or holds a strictly costlier elite.
Sourcepub fn elites(&self) -> impl Iterator<Item = (usize, &Elite<G>)> + '_
pub fn elites(&self) -> impl Iterator<Item = (usize, &Elite<G>)> + '_
The filled cells and their elites, in the order the cells were first filled.
Trait Implementations§
impl<G: PartialEq> StructuralPartialEq for Archive<G>
Auto Trait Implementations§
impl<G> Forget for Archive<G>
impl<G> Freeze for Archive<G>
impl<G> Move for Archive<G>
impl<G> RefUnwindSafe for Archive<G>
impl<G> Send for Archive<G>
impl<G> Sync for Archive<G>
impl<G> Unpin for Archive<G>
impl<G> UnsafeUnpin for Archive<G>
impl<G> UnwindSafe for Archive<G>
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