Enum itertools::Position [−][src]
pub enum Position<T> { First(T), Middle(T), Last(T), Only(T), }
Expand description
A value yielded by WithPosition
.
Indicates the position of this element in the iterator results.
See .with_position()
for more information.
Variants
This is the first element.
This is neither the first nor the last element.
This is the last element.
This is the only element.
Implementations
Return the inner value.