Enum itertools::Position [] [src]

pub enum Position<T> {

A value yielded by WithPosition. Indicates the position of this element in the iterator results.

See .with_position() for more information.


This is the first element.

This is neither the first nor the last element.

This is the last element.

This is the only element.


impl<T> Position<T>

Return the inner value.

Trait Implementations

impl<T: Copy> Copy for Position<T>

impl<T: Clone> Clone for Position<T>

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Position<T>

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for Position<T>

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.