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

Create a new instance

  • seq is a GeneratorWithPersianRug that produces something that can be converted into usize, which will be the number of elements in each yielded collection.
  • elt is a GeneratorWithPersianRug that produces something that can be convered into the the container element type.

Trait Implementations

Available on crate feature persian-rug only.

The output type.

Available on crate feature persian-rug only.

Make a new object. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.