pub struct SubtreeCrossover {
pub grammar: Grammar,
pub max_depth: usize,
pub max_len: usize,
}Expand description
Subtree crossover: swap a random subtree of each parent; a child over the limits is replaced by a copy of its parent.
Fields§
§grammar: GrammarThe language.
max_depth: usizeThe largest depth of a child.
max_len: usizeThe largest number of nodes of a child.
Trait Implementations§
Source§impl Clone for SubtreeCrossover
impl Clone for SubtreeCrossover
Source§impl Debug for SubtreeCrossover
impl Debug for SubtreeCrossover
impl Eq for SubtreeCrossover
Source§impl PartialEq for SubtreeCrossover
impl PartialEq for SubtreeCrossover
impl StructuralPartialEq for SubtreeCrossover
Auto Trait Implementations§
impl Forget for SubtreeCrossover
impl Freeze for SubtreeCrossover
impl Move for SubtreeCrossover
impl RefUnwindSafe for SubtreeCrossover
impl Send for SubtreeCrossover
impl Sync for SubtreeCrossover
impl Unpin for SubtreeCrossover
impl UnsafeUnpin for SubtreeCrossover
impl UnwindSafe for SubtreeCrossover
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