pub struct RandomChain<S> {
pub genes: S,
pub min_len: usize,
pub max_len: usize,
}Expand description
Random chains of uniform length in min_len..=max_len, genes from genes.
Fields§
§genes: SThe gene sampler, for example an ActionModel.
min_len: usizeThe shortest chain.
max_len: usizeThe longest chain, >= min_len.
Trait Implementations§
Source§impl<S: Clone> Clone for RandomChain<S>
impl<S: Clone> Clone for RandomChain<S>
Source§impl<S: Debug> Debug for RandomChain<S>
impl<S: Debug> Debug for RandomChain<S>
Source§impl<T, S: Initializer<T>> Initializer<Vec<T>> for RandomChain<S>
impl<T, S: Initializer<T>> Initializer<Vec<T>> for RandomChain<S>
Source§impl<S: PartialEq> PartialEq for RandomChain<S>
impl<S: PartialEq> PartialEq for RandomChain<S>
impl<S: PartialEq> StructuralPartialEq for RandomChain<S>
Auto Trait Implementations§
impl<S> Forget for RandomChain<S>
impl<S> Freeze for RandomChain<S>where
S: Freeze,
impl<S> Move for RandomChain<S>
impl<S> RefUnwindSafe for RandomChain<S>where
S: RefUnwindSafe,
impl<S> Send for RandomChain<S>where
S: Send,
impl<S> Sync for RandomChain<S>where
S: Sync,
impl<S> Unpin for RandomChain<S>where
S: Unpin,
impl<S> UnsafeUnpin for RandomChain<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for RandomChain<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