Struct suppositions::generators::OneOfSnoc
[−]
[src]
pub struct OneOfSnoc<G, R> { /* fields omitted */ }
Internal implementation for one_of
. Forms a
left-associated chain of generators.
Trait Implementations
impl<G: Debug, R: Debug> Debug for OneOfSnoc<G, R>
[src]
impl<G: Clone, R: Clone> Clone for OneOfSnoc<G, R>
[src]
fn clone(&self) -> OneOfSnoc<G, R>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<G: Generator, R: OneOfItem<Item = G::Item>> OneOfItem for OneOfSnoc<G, R>
[src]
type Item = G::Item
The generator type.
fn len(&self) -> usize
[src]
The number of cases reachable from this one.
fn generate_or_delegate<I: Iterator<Item = u8>>(
&self,
depth: usize,
tap: &mut I
) -> Maybe<Self::Item>
[src]
&self,
depth: usize,
tap: &mut I
) -> Maybe<Self::Item>
Depending on the case selected in the Generator
ipmlementation for (OneOfGenerator
)[struct.OneOfGenerator.html], we either call our generator directly, or delegate to the next in the chain. Read more