pub struct EngineState {
pub algorithm_name: String,
pub algorithm_state: Vec<u8>,
pub gene_pool: GenePool,
pub rng_seed: u64,
pub budget: Budget,
pub gene_stats: Vec<(String, String, u32, u32)>,
pub fitness_history: Vec<f64>,
pub stagnation_counter: u32,
pub request_count: usize,
pub stats: SearchStats,
pub schema_version: u32,
}Expand description
Serializable engine state.
Fields§
§algorithm_name: String§algorithm_state: Vec<u8>§gene_pool: GenePool§rng_seed: u64§budget: Budget§gene_stats: Vec<(String, String, u32, u32)>§fitness_history: Vec<f64>§stagnation_counter: u32§request_count: usize§stats: SearchStats§schema_version: u32Trait Implementations§
Source§impl Clone for EngineState
impl Clone for EngineState
Source§fn clone(&self) -> EngineState
fn clone(&self) -> EngineState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineState
impl Debug for EngineState
Source§impl<'de> Deserialize<'de> for EngineState
impl<'de> Deserialize<'de> for EngineState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EngineState
impl RefUnwindSafe for EngineState
impl Send for EngineState
impl Sync for EngineState
impl Unpin for EngineState
impl UnsafeUnpin for EngineState
impl UnwindSafe for EngineState
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