pub enum IteratorLocation {
    First,
    Nth(usize),
    Last,
    Only,
}
Expand description

When mapping over an iterable, this returns the location of the current iteration

Variants

First

This item is the first item in the iterable

Nth(usize)

This item is not the first or last item, but the nth item

Last

This item is the last in the iterable

Only

This item is the only item in the iterable (ie, the first AND last)

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.