Expand description
Licensed under the Apache License, Version 2.0 https://www.apache.org/licenses/LICENSE-2.0 or the MIT license https://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.
Re-exports§
pub use self::map::map_into;
pub use self::map::map_ok;
pub use self::map::MapInto;
pub use self::map::MapOk;
pub use self::coalesce::*;
pub use self::multi_product::*;
Modules§
- coalesce 🔒
- map 🔒
- multi_
product 🔒
Macros§
Structs§
- Batching
- A “meta iterator adaptor”. Its closure receives a reference to the iterator and may pick off as many elements as it likes, to produce the next iterator element.
- Filter
MapOk - An iterator adapter to filter and apply a transformation on values within a nested
Result::Ok
. - Filter
Ok - An iterator adapter to filter values within a nested
Result::Ok
. - Interleave
- An iterator adaptor that alternates elements from two iterators until both run out.
- Interleave
Shortest - An iterator adaptor that alternates elements from the two iterators until one of them runs out.
- Positions
- An iterator adapter to get the positions of each element that matches a predicate.
- Product
- An iterator adaptor that iterates over the cartesian product of
the element sets of two iterators
I
andJ
. - PutBack
- An iterator adaptor that allows putting back a single item to the front of the iterator.
- Take
While Ref - An iterator adaptor that borrows from a
Clone
-able iterator to only pick off elements while the predicate returnstrue
. - Tuple1
Combination - Tuple2
Combination - Tuple3
Combination - Tuple4
Combination - Tuple5
Combination - Tuple6
Combination - Tuple7
Combination - Tuple8
Combination - Tuple9
Combination - Tuple10
Combination - Tuple11
Combination - Tuple12
Combination - Tuple
Combinations - An iterator to iterate through all combinations in a
Clone
-able iterator that produces tuples of a specific size. - Update
- An iterator adapter to apply a mutating function to each element before yielding it.
- While
Some - An iterator adaptor that filters
Option<A>
iterator elements and producesA
. Stops on the firstNone
encountered.
Traits§
Functions§
- batching
- Create a new Batching iterator.
- cartesian_
product - Create a new cartesian product iterator
- checked_
binomial 🔒 - filter_
map_ ok - Create a new
FilterOk
iterator. - filter_
ok - Create a new
FilterOk
iterator. - interleave
- Create an iterator that interleaves elements in
i
andj
. - interleave_
shortest - Create a new
InterleaveShortest
iterator. - positions
- Create a new
Positions
iterator. - put_
back - Create an iterator where you can put back a single item
- take_
while_ ref - Create a new
TakeWhileRef
from a reference to clonable iterator. - transpose_
result 🔒 - tuple_
combinations - Create a new
TupleCombinations
from a clonable iterator. - update
- Create a new
Update
iterator. - while_
some - Create a new
WhileSome<I>
.