Enum Position

enum Position

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.

Implementations

impl Clone for Position

fn clone(self: &Self) -> Position

impl Copy for Position

impl Debug for Position

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for Position

impl Freeze for Position

impl PartialEq for Position

fn eq(self: &Self, other: &Position) -> bool

impl RefUnwindSafe for Position

impl Send for Position

impl StructuralPartialEq for Position

impl Sync for Position

impl Unpin for Position

impl UnsafeUnpin for Position

impl UnwindSafe for Position

impl<T> Any for Position

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Position

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Position

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Position

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Position

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Position

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Position

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Position

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Position

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>