pub enum RepairMode {
Off,
Drop,
Replace,
}Expand description
Whether and how chains are repaired genotypically.
Variants§
Off
No genotypic repair: chains keep their inapplicable genes, and only the decoding skips them (phenotypic repair; the default, following Jakob’s advice that genotypic repair freezes order changes that need several steps).
Drop
Write the executed plan back: inapplicable genes are dropped and the chain is cut after the goal.
Replace
Like Drop, but each inapplicable gene is replaced by a uniformly chosen applicable
operator.
Trait Implementations§
Source§impl Clone for RepairMode
impl Clone for RepairMode
impl Copy for RepairMode
Source§impl Debug for RepairMode
impl Debug for RepairMode
Source§impl Default for RepairMode
impl Default for RepairMode
impl Eq for RepairMode
Source§impl PartialEq for RepairMode
impl PartialEq for RepairMode
impl StructuralPartialEq for RepairMode
Auto Trait Implementations§
impl Forget for RepairMode
impl Freeze for RepairMode
impl Move for RepairMode
impl RefUnwindSafe for RepairMode
impl Send for RepairMode
impl Sync for RepairMode
impl Unpin for RepairMode
impl UnsafeUnpin for RepairMode
impl UnwindSafe for RepairMode
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