Expand description
Non-empty iterators.
Modules§
- adapter
- Non-empty adapter.
- chain
- Linking non-empty and possibly empty iterators together.
- cloned
- Cloning the items of non-empty iterators.
- copied
- Copying the items of non-empty iterators.
- cycle
- Repeating non-empty iterators endlessly.
- enumerate
- Enumerating items in non-empty iterators.
- flat_
map - Mapping non-empty iterators’ items to non-empty iterators that have their items yielded.
- flatten
- Flattening one level of nesting in non-empty iterators of items that can be turned into non-empty iterators.
- fuse
- Fusing non-empty iterators.
- inspect
- Inspecting items of non-empty iterators.
- map
- Mapping items of non-empty iterators.
- non_
empty - The non-empty iterator core traits.
- once
- Yielding items exactly once.
- peeked
- Non-empty peeked iterators.
- repeat
- Non-empty iterators that repeat items.
- rev
- Reversing the non-empty iteration direction.
- step_by
- Stepping non-empty iterators by the custom amount.
- successors
- Non-empty iterators that compute each successive item from the preceding one.
- take
- Iterating over only the first provided number of items in non-empty iterators.
- zip
- Zipping two non-empty iterators together.
Structs§
- Chain
- Represents non-empty iterators that link two iterators together.
- Cloned
- Represents non-empty iterators that clone the items of the underlying non-empty iterator.
- Cycle
- Represents non-empty iterators that repeat endlessly.
- Enumerate
- Represents non-empty iterators that yield the current count and the item during iteration.
- FlatMap
- Represents non-empty iterators which map items to non-empty iterators that have their items yielded.
- Flatten
- Represents non-empty iterators that flatten one level of nesting in non-empty iterators of items that can be turned into non-empty iterators.
- Fuse
- Represents non-empty iterators that yield
Noneforever after the underlying iterator yieldsNoneonce. - Inspect
- Represents non-empty iterators that allow inspecting each item before yielding it.
- Map
- Represents non-empty iterators that map the items of the non-empty iterator with the function.
- NonEmpty
Adapter - Adapts
IntoIteratorvalues that are known to be non-empty to implementNonEmptyIterator. - Once
- Represents non-empty iterators that yield the given value exactly once.
- Once
With - Represents non-empty iterators that yield the value computed from the given function exactly once.
- Peeked
- Represents non-empty peeked iterators.
- Repeat
- Represents non-empty iterators that repeat the given item endlessly.
- RepeatN
- Represents non-empty iterators that repeat the given item exactly the given number of times.
- Repeat
With - Represents non-empty iterators that repeat items computed from the given function endlessly.
- Rev
- Represents non-empty iterators with the direction reversed.
- StepBy
- Represents non-empty iterators for stepping non-empty iterators by the custom amount.
- Successors
- Represents non-empty iterators which, starting from the initial item, compute each successive item from preceding one.
- Take
- Represents non-empty iterators that only iterate over the first given number of items of the underlying iterator.
- Zip
- Represents non-empty iterators that iterate over two other non-empty iterators simultaneously.
Traits§
- From
NonEmpty Iterator - Represents types that can be created from non-empty iterators.
- Into
NonEmpty Iterator - Represents types that can be converted into non-empty iterators.
- NonEmpty
Iterator - Represents
Iteratorthat is guaranteed to be non-empty (equivalently, having at least one item). - TryInto
NonEmpty Iterator - Convenience trait implemented for any type that is
IntoIterator, allowing to convert iterables into non-empty ones.
Functions§
- chain
- Converts the given arguments to iterators and links them together.
- once
- Creates
Once<T>, non-empty iterator that yields the given value exactly once. - once_
with - Creates
OnceWith<T>non-empty iterator that yields the value computed from the given function exactly once. - repeat
- Creates
Repeat<T>non-empty iterator that repeats the given item endlessly. - repeat_
n - Creates
RepeatN<T>non-empty iterator that repeats the given item the given number of times. - repeat_
with - Creates
RepeatWith<F>non-empty iterator that repeats items computed from the given function endlessly. - successors
- Creates
Successors<T, S>non-empty iterator which, starting from the initial item, computes each successive item from the preceding one. - zip
- Converts the given arguments to non-empty iterators and zips them.