Struct IntoPairs

pub struct IntoPairs<T, P> { /* private fields */ }

An iterator over owned pairs of type Pair<T, P>.

Refer to the module documentation for details about punctuated sequences.

Trait Implementations

impl<T, P> Clone for IntoPairs<T, P> where T: Clone, P: Clone,

fn clone(&self) -> Self

impl<T, P> DoubleEndedIterator for IntoPairs<T, P>

fn next_back(&mut self) -> Option<Self::Item>

impl<T, P> ExactSizeIterator for IntoPairs<T, P>

fn len(&self) -> usize

impl<T, P> Iterator for IntoPairs<T, P>

type Item = Pair<T, P>;
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)

Auto Trait Implementations

impl<T, P> Freeze for IntoPairs<T, P> where IntoIter<(T, P)>: Freeze, IntoIter<T>: Freeze,

impl<T, P> RefUnwindSafe for IntoPairs<T, P> where IntoIter<(T, P)>: RefUnwindSafe, IntoIter<T>: RefUnwindSafe,

impl<T, P> Send for IntoPairs<T, P> where IntoIter<(T, P)>: Send, IntoIter<T>: Send,

impl<T, P> Sync for IntoPairs<T, P> where IntoIter<(T, P)>: Sync, IntoIter<T>: Sync,

impl<T, P> Unpin for IntoPairs<T, P> where IntoIter<(T, P)>: Unpin, IntoIter<T>: Unpin,

impl<T, P> UnsafeUnpin for IntoPairs<T, P> where IntoIter<(T, P)>: UnsafeUnpin, IntoIter<T>: UnsafeUnpin,

impl<T, P> UnwindSafe for IntoPairs<T, P> where IntoIter<(T, P)>: UnwindSafe, IntoIter<T>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for IntoPairs<T, P> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for IntoPairs<T, P> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for IntoPairs<T, P> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for IntoPairs<T, P> where T: ?Sized,

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

impl<T> CloneToUninit for IntoPairs<T, P> where T: Clone,

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

impl<T> From<T> for IntoPairs<T, P>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for IntoPairs<T, P> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for IntoPairs<T, P> where U: From<T>,

fn into(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<U> for IntoPairs<T, P> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for IntoPairs<T, P> where U: TryFrom<T>,

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