Enum itertools::Position [−][src]
pub enum Position<T> { First(T), Middle(T), Last(T), Only(T), }
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
impl<T> Position<T>
[src]
impl<T> Position<T>
[src]pub fn into_inner(self) -> T
[src]
Return the inner value.
Trait Implementations
impl<T: Copy> Copy for Position<T>
[src]
impl<T> StructuralPartialEq for Position<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Position<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Position<T> where
T: Send,
T: Send,
impl<T> Sync for Position<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Position<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Position<T> where
T: UnwindSafe,
T: UnwindSafe,