pub struct InsertSegment<S> {
pub genes: S,
pub max_segment: usize,
pub max_len: usize,
}Expand description
Inserts a segment of new random genes (length 1..=max_segment), within max_len.
Fields§
§genes: SThe gene sampler.
max_segment: usizeThe longest segment inserted, at least 1.
max_len: usizeThe longest chain allowed.
Trait Implementations§
Source§impl<S: Clone> Clone for InsertSegment<S>
impl<S: Clone> Clone for InsertSegment<S>
Source§impl<S: Debug> Debug for InsertSegment<S>
impl<S: Debug> Debug for InsertSegment<S>
Source§impl<T, S: Initializer<T>> Mutation<Vec<T>> for InsertSegment<S>
impl<T, S: Initializer<T>> Mutation<Vec<T>> for InsertSegment<S>
Source§impl<S: PartialEq> PartialEq for InsertSegment<S>
impl<S: PartialEq> PartialEq for InsertSegment<S>
impl<S: PartialEq> StructuralPartialEq for InsertSegment<S>
Auto Trait Implementations§
impl<S> Forget for InsertSegment<S>
impl<S> Freeze for InsertSegment<S>where
S: Freeze,
impl<S> Move for InsertSegment<S>
impl<S> RefUnwindSafe for InsertSegment<S>where
S: RefUnwindSafe,
impl<S> Send for InsertSegment<S>where
S: Send,
impl<S> Sync for InsertSegment<S>where
S: Sync,
impl<S> Unpin for InsertSegment<S>where
S: Unpin,
impl<S> UnsafeUnpin for InsertSegment<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for InsertSegment<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