Module transformations

Source
Expand description

Module defining transformations among iterables.

Structs§

Chained
An iterable created by chaining two iterables.
ChainedCol
An iterable collection created by chaining two iterable collections.
Cloned
An iterable whose iterators yield elements which are clones of references that a wrapped iterable yields.
CloningIterable
An iterable created from an Iterator which can be Cloned.
Copied
An iterable whose iterators yield elements which are copies of references that a wrapped iterable yields.
Enumerated
Wraps an Iterable and creates a new Iterable which yields the element indices together with the elements.
FilterMapped
Wraps an Iterable and creates a new Iterable which filters-and-maps the elements of the original iterable.
Filtered
Wraps an Iterable and creates a new Iterable which yields elements of the original iterable filtered by a predicate.
FilteredCol
Wraps an Collection and creates a new Collection which yields elements of the original iterable filtered by a predicate.
FilteredColIter
Immutable iterator over the filtered iterable collection.
FilteredColIterMut
Mutable iterator over the filtered iterable collection.
FlatMapped
Wraps an Iterable and creates a new Iterable which maps-and-flattens the elements of the original iterable.
FlatMappedIter
Flat mapped iterator for iterables.
Flattened
Wraps an Iterable and creates a new Iterable which flattens the elements of the original iterable filtered by a predicate.
FlattenedCol
Wraps an Collection and creates a new Collection which flattens the elements of the original iterable filtered by a predicate.
Fused
Wraps an Iterable and transforms into a fused Iterable.
FusedCol
Wraps an Collection and transforms into a fused Collection.
Mapped
Wraps an Iterable and creates a new Iterable which maps the elements of the original iterable.
MappedWhile
Wraps an Iterable and creates a new Iterable which maps the elements of the original iterable as long as the map-while condition is satisfied.
Reversed
Wraps an Iterable and creates a new Iterable which yields the elements of the original iterable in reverse order.
ReversedCol
Wraps an Collection and creates a new Collection which yields the elements of the original iterable in reverse order.
Skipped
Wraps an Iterable and creates a new Iterable which skips first n the elements of the original iterable.
SkippedCol
Wraps an Collection and creates a new Collection which skips first n the elements of the original iterable.
SkippedWhile
Wraps an Iterable and creates a new Iterable which skips the elements of the original iterable that satisfy a given predicate and yields the remaining.
SkippedWhileCol
Wraps an Collection and creates a new Collection which skips the elements of the original iterable that satisfy a given predicate and yields the remaining.
SkippedWhileColIter
Immutable iterator for skipped while iterable collection.
SkippedWhileColIterMut
Mutable iterator for skipped while iterable collection.
SteppedBy
Wraps an Iterable and creates a new Iterable which yields elements of the original iterable by stepping by a given step size.
SteppedByCol
Wraps an Collection and creates a new Collection which yields elements of the original iterable by stepping by a given step size.
Taken
Wraps an Iterable and creates a new Iterable which yields only the first n the elements of the original iterable.
TakenCol
Wraps an Collection and creates a new Collection which yields only the first n the elements of the original iterable.
TakenWhile
Wraps an Iterable and creates a new Iterable which yields elements of the original iterable as long as a predicate is satisfied.
TakenWhileCol
Wraps an Collection and creates a new Collection which yields elements of the original iterable as long as a predicate is satisfied.
TakenWhileColIter
Immutable iterator for taken while iterable collections.
TakenWhileColIterMut
Mutable iterator for taken while iterable collections.
Zipped
An iterable created by zipping two iterables.

Traits§

IntoCloningIterable
Trait to transform types implementing Iterator + Clone into an Iterable.