pub struct SimResult {
pub genes: Vec<u8>,
pub score: f64,
}
Expand description
A SimResult is a single datapoint – a snapshot of the best solution the simulation has found so far.
Fields§
§genes: Vec<u8>
The genetic code of the best cell.
score: f64
The score of the best cell (as computed by the fitness evaluator).
Auto Trait Implementations§
impl Freeze for SimResult
impl RefUnwindSafe for SimResult
impl Send for SimResult
impl Sync for SimResult
impl Unpin for SimResult
impl UnwindSafe for SimResult
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