Enum stdcli::prelude::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.

Methods

impl<T> Position<T>
[src]

[src]

Return the inner value.

Trait Implementations

impl<T> Copy for Position<T> where
    T: Copy
[src]

impl<T> Clone for Position<T> where
    T: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> PartialEq<Position<T>> for Position<T> where
    T: PartialEq<T>, 
[src]

[src]

[src]

impl<T> Debug for Position<T> where
    T: Debug
[src]

[src]

Formats the value using the given formatter.