Enum with_position::Position
[−]
[src]
pub enum Position { First, Middle, Last, Only, }
An enum which indicates the position of an item in an iteration.
Variants
First
Middle
Last
Only
Methods
impl Position
[src]
Trait Implementations
impl Copy for Position
[src]
impl Clone for Position
[src]
fn clone(&self) -> Position
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Position
[src]
fn eq(&self, __arg_0: &Position) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.