pub struct InsertGene<S> {
pub genes: S,
pub max_len: usize,
}Expand description
Inserts one new random gene at a random position, unless the chain has max_len genes.
Fields§
§genes: SThe gene sampler.
max_len: usizeThe longest chain allowed.
Trait Implementations§
Source§impl<S: Clone> Clone for InsertGene<S>
impl<S: Clone> Clone for InsertGene<S>
Source§impl<S: Debug> Debug for InsertGene<S>
impl<S: Debug> Debug for InsertGene<S>
Source§impl<T, S: Initializer<T>> Mutation<Vec<T>> for InsertGene<S>
impl<T, S: Initializer<T>> Mutation<Vec<T>> for InsertGene<S>
Source§impl<S: PartialEq> PartialEq for InsertGene<S>
impl<S: PartialEq> PartialEq for InsertGene<S>
impl<S: PartialEq> StructuralPartialEq for InsertGene<S>
Auto Trait Implementations§
impl<S> Forget for InsertGene<S>
impl<S> Freeze for InsertGene<S>where
S: Freeze,
impl<S> Move for InsertGene<S>
impl<S> RefUnwindSafe for InsertGene<S>where
S: RefUnwindSafe,
impl<S> Send for InsertGene<S>where
S: Send,
impl<S> Sync for InsertGene<S>where
S: Sync,
impl<S> Unpin for InsertGene<S>where
S: Unpin,
impl<S> UnsafeUnpin for InsertGene<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for InsertGene<S>where
S: UnwindSafe,
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