pub struct SolverConfig {
pub solution_class: Option<String>,
pub entity_class_list: Vec<String>,
pub environment_mode: Option<EnvironmentMode>,
pub random_seed: Option<u64>,
pub move_thread_count: Option<MoveThreadCount>,
pub termination: Option<TerminationConfig>,
}Fields§
§solution_class: Option<String>§entity_class_list: Vec<String>§environment_mode: Option<EnvironmentMode>§random_seed: Option<u64>§move_thread_count: Option<MoveThreadCount>§termination: Option<TerminationConfig>Implementations§
Source§impl SolverConfig
impl SolverConfig
pub fn new() -> Self
pub fn with_solution_class(self, class_name: impl Into<String>) -> Self
pub fn with_entity_class(self, class_name: impl Into<String>) -> Self
pub fn with_entity_classes(self, classes: Vec<String>) -> Self
pub fn with_environment_mode(self, mode: EnvironmentMode) -> Self
pub fn with_random_seed(self, seed: u64) -> Self
pub fn with_move_thread_count(self, count: MoveThreadCount) -> Self
pub fn with_termination(self, termination: TerminationConfig) -> Self
pub fn environment_mode_or_default(&self) -> EnvironmentMode
Trait Implementations§
Source§impl Clone for SolverConfig
impl Clone for SolverConfig
Source§fn clone(&self) -> SolverConfig
fn clone(&self) -> SolverConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SolverConfig
impl Debug for SolverConfig
Source§impl Default for SolverConfig
impl Default for SolverConfig
Source§fn default() -> SolverConfig
fn default() -> SolverConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SolverConfig
impl<'de> Deserialize<'de> for SolverConfig
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
Source§impl PartialEq for SolverConfig
impl PartialEq for SolverConfig
Source§impl Serialize for SolverConfig
impl Serialize for SolverConfig
impl Eq for SolverConfig
impl StructuralPartialEq for SolverConfig
Auto Trait Implementations§
impl Freeze for SolverConfig
impl RefUnwindSafe for SolverConfig
impl Send for SolverConfig
impl Sync for SolverConfig
impl Unpin for SolverConfig
impl UnwindSafe for SolverConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.