pub struct MutationConfig {
pub mutation_rate: f64,
pub allow_flip: bool,
pub seed: Option<u64>,
}Expand description
Configuration for autofill mutation.
Fields§
§mutation_rate: f64Probability of mutation per cell (0.0 - 1.0).
allow_flip: boolIf true, mutations can flip sign; otherwise they tend toward neutral.
seed: Option<u64>Seed for deterministic behavior (None = use counter).
Trait Implementations§
Source§impl Clone for MutationConfig
impl Clone for MutationConfig
Source§fn clone(&self) -> MutationConfig
fn clone(&self) -> MutationConfig
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 MutationConfig
impl Debug for MutationConfig
Auto Trait Implementations§
impl Freeze for MutationConfig
impl RefUnwindSafe for MutationConfig
impl Send for MutationConfig
impl Sync for MutationConfig
impl Unpin for MutationConfig
impl UnsafeUnpin for MutationConfig
impl UnwindSafe for MutationConfig
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