Struct boulder::SequenceGeneratorWithPersianRug
source · [−]pub struct SequenceGeneratorWithPersianRug<S, T, V> { /* private fields */ }
Available on crate feature
persian-rug
only.Expand description
Collections drawn from an underlying generator.
This wraps an underlying generator that produces items, which this
then gathers into collections. A separate
GeneratorWithPersianRug
is used to determine how many elements
are present in each successively yielded collection.
Implementations
sourceimpl<S, T, V> SequenceGeneratorWithPersianRug<S, T, V>
impl<S, T, V> SequenceGeneratorWithPersianRug<S, T, V>
sourcepub fn new(seq: S, elt: T) -> Self
pub fn new(seq: S, elt: T) -> Self
Create a new instance
seq
is aGeneratorWithPersianRug
that produces something that can be converted intousize
, which will be the number of elements in each yielded collection.elt
is aGeneratorWithPersianRug
that produces something that can be convered into the the container element type.
Trait Implementations
sourceimpl<S, T, V, C, W> GeneratorWithPersianRug<C> for SequenceGeneratorWithPersianRug<S, T, V> where
C: Context,
S: GeneratorWithPersianRug<C>,
T: GeneratorWithPersianRug<C>,
V: IntoIterator<Item = W> + FromIterator<W>,
<T as GeneratorWithPersianRug<C>>::Output: Into<W>,
<S as GeneratorWithPersianRug<C>>::Output: Into<usize>,
impl<S, T, V, C, W> GeneratorWithPersianRug<C> for SequenceGeneratorWithPersianRug<S, T, V> where
C: Context,
S: GeneratorWithPersianRug<C>,
T: GeneratorWithPersianRug<C>,
V: IntoIterator<Item = W> + FromIterator<W>,
<T as GeneratorWithPersianRug<C>>::Output: Into<W>,
<S as GeneratorWithPersianRug<C>>::Output: Into<usize>,
Auto Trait Implementations
impl<S, T, V> RefUnwindSafe for SequenceGeneratorWithPersianRug<S, T, V> where
S: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<S, T, V> Send for SequenceGeneratorWithPersianRug<S, T, V> where
S: Send,
T: Send,
V: Send,
impl<S, T, V> Sync for SequenceGeneratorWithPersianRug<S, T, V> where
S: Sync,
T: Sync,
V: Sync,
impl<S, T, V> Unpin for SequenceGeneratorWithPersianRug<S, T, V> where
S: Unpin,
T: Unpin,
V: Unpin,
impl<S, T, V> UnwindSafe for SequenceGeneratorWithPersianRug<S, T, V> where
S: UnwindSafe,
T: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more