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
First(T)
This is the first element.
Middle(T)
This is neither the first nor the last element.
Last(T)
This is the last element.
Only(T)
This is the only element.
Implementations
Return the inner value.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Position<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Position<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more