pub struct GeneTilePool { /* private fields */ }Implementations§
Source§impl GeneTilePool
impl GeneTilePool
pub fn new() -> Self
pub fn insert(&mut self, gt: GeneTile)
pub fn best_for_query(&self, query: &str) -> Option<&GeneTile>
Sourcepub fn evolve(&mut self)
pub fn evolve(&mut self)
One generation: crossover top-2, drift expression toward fitness, prune bottom quartile.
pub fn quarantine_below(&mut self, threshold: f64) -> usize
pub fn harvest(&self, n: usize) -> Vec<Tile>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn active_count(&self) -> usize
pub fn generation(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GeneTilePool
impl RefUnwindSafe for GeneTilePool
impl Send for GeneTilePool
impl Sync for GeneTilePool
impl Unpin for GeneTilePool
impl UnsafeUnpin for GeneTilePool
impl UnwindSafe for GeneTilePool
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