pub struct ForagerConfig {
pub accepted_count_limit: Option<usize>,
pub pick_early_type: Option<PickEarlyType>,
}Expand description
Forager configuration.
Fields§
§accepted_count_limit: Option<usize>Maximum number of accepted moves to consider.
pick_early_type: Option<PickEarlyType>Whether to pick early if an improving move is found.
Trait Implementations§
Source§impl Clone for ForagerConfig
impl Clone for ForagerConfig
Source§fn clone(&self) -> ForagerConfig
fn clone(&self) -> ForagerConfig
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 ForagerConfig
impl Debug for ForagerConfig
Source§impl Default for ForagerConfig
impl Default for ForagerConfig
Source§fn default() -> ForagerConfig
fn default() -> ForagerConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ForagerConfig
impl<'de> Deserialize<'de> for ForagerConfig
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 ForagerConfig
impl RefUnwindSafe for ForagerConfig
impl Send for ForagerConfig
impl Sync for ForagerConfig
impl Unpin for ForagerConfig
impl UnwindSafe for ForagerConfig
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