Struct Pairs

pub struct Pairs<'a, T: 'a, P: 'a> { /* private fields */ }

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

Refer to the module documentation for details about punctuated sequences.

Trait Implementations

impl<'a, T, P> Clone for Pairs<'a, T, P>

fn clone(&self) -> Self

impl<'a, T, P> DoubleEndedIterator for Pairs<'a, T, P>

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

impl<'a, T, P> ExactSizeIterator for Pairs<'a, T, P>

fn len(&self) -> usize

impl<'a, T, P> Iterator for Pairs<'a, T, P>

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

Auto Trait Implementations

impl<'a, T, P> Freeze for Pairs<'a, T, P> where Iter<'a, (T, P)>: Freeze, IntoIter<&'a T>: Freeze,

impl<'a, T, P> RefUnwindSafe for Pairs<'a, T, P> where Iter<'a, (T, P)>: RefUnwindSafe, IntoIter<&'a T>: RefUnwindSafe,

impl<'a, T, P> Send for Pairs<'a, T, P> where Iter<'a, (T, P)>: Send, IntoIter<&'a T>: Send,

impl<'a, T, P> Sync for Pairs<'a, T, P> where Iter<'a, (T, P)>: Sync, IntoIter<&'a T>: Sync,

impl<'a, T, P> Unpin for Pairs<'a, T, P> where Iter<'a, (T, P)>: Unpin, IntoIter<&'a T>: Unpin,

impl<'a, T, P> UnsafeUnpin for Pairs<'a, T, P> where Iter<'a, (T, P)>: UnsafeUnpin, IntoIter<&'a T>: UnsafeUnpin,

impl<'a, T, P> UnwindSafe for Pairs<'a, T, P> where Iter<'a, (T, P)>: UnwindSafe, IntoIter<&'a T>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for Pairs<'a, T, P> where I: Iterator,

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

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Pairs<'a, T, P> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Pairs<'a, T, P> where T: ?Sized,

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

impl<T> CloneToUninit for Pairs<'a, T, P> where T: Clone,

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

impl<T> From<T> for Pairs<'a, T, P>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Pairs<'a, 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 Pairs<'a, 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 Pairs<'a, T, P> where U: Into<T>,

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

impl<T, U> TryInto<U> for Pairs<'a, T, P> where U: TryFrom<T>,

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