pub enum Position {
First,
Middle,
Last,
Only,
}
Expand description
The first component of the value yielded by WithPosition
.
Indicates the position of this element in the iterator results.
See .with_position()
for more information.
Variants§
First
This is the first element.
Middle
This is neither the first nor the last element.
Last
This is the last element.
Only
This is the only element.
Trait Implementations§
source§impl PartialEq<Position> for Position
impl PartialEq<Position> for Position
impl Copy for Position
impl Eq for Position
impl StructuralEq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more