Struct WithPosition

struct WithPosition<I> { ... }
where
    I: Iterator

An iterator adaptor that wraps each element in an Position.

Iterator element type is (Position, I::Item).

See .with_position() for more information.

Implementations

impl<I> Clone for WithPosition<I>

fn clone(self: &Self) -> Self

impl<I> Debug for WithPosition<I>

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

impl<I> ExactSizeIterator for WithPosition<I>

impl<I> Freeze for WithPosition<I>

impl<I> IntoIterator for WithPosition<I>

fn into_iter(self: Self) -> I

impl<I> RefUnwindSafe for WithPosition<I>

impl<I> Send for WithPosition<I>

impl<I> Sync for WithPosition<I>

impl<I> Unpin for WithPosition<I>

impl<I> UnsafeUnpin for WithPosition<I>

impl<I> UnwindSafe for WithPosition<I>

impl<I: Iterator> FusedIterator for WithPosition<I>

impl<I: Iterator> Iterator for WithPosition<I>

fn next(self: &mut Self) -> Option<<Self as >::Item>
fn size_hint(self: &Self) -> (usize, Option<usize>)
fn fold<B, F>(self: Self, init: B, f: F) -> B
where
    F: FnMut(B, <Self as >::Item) -> B

impl<IT, A, FromA, B, FromB> MultiUnzip for WithPosition<I>

fn multiunzip(self: Self) -> (FromA, FromB)

impl<T> Any for WithPosition<I>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for WithPosition<I>

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

impl<T> BorrowMut for WithPosition<I>

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

impl<T> CloneToUninit for WithPosition<I>

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

impl<T> From for WithPosition<I>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Itertools for WithPosition<I>

impl<T> ToOwned for WithPosition<I>

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

impl<T, U> Into for WithPosition<I>

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 WithPosition<I>

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

impl<T, U> TryInto for WithPosition<I>

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