Trait granite::IntoRefIterator[][src]

pub trait IntoRefIterator<'a> {
    type Item: 'a;
    type Iter: Iterator<Item = &'a Self::Item>;
    fn iter(&'a self) -> Self::Iter;
}

Types which have corresponding immutably borrowing iterators.

This is a lot like IntoIterator, but analogous to [Vec]’s .iter() method.

Associated Types

type Item: 'a[src]

The item type over references to which iteration will be performed.

type Iter: Iterator<Item = &'a Self::Item>[src]

The resulting iterator type.

Loading content...

Required methods

fn iter(&'a self) -> Self::Iter[src]

Borrows the value into a by-reference iterator with immutable access.

Loading content...

Implementations on Foreign Types

impl<'a, T: 'a> IntoRefIterator<'a> for Vec<T>[src]

type Item = T

type Iter = Iter<'a, T>

impl<'a, T: 'a> IntoRefIterator<'a> for VecDeque<T>[src]

type Item = T

type Iter = Iter<'a, T>

impl<'a, A: Array> IntoRefIterator<'a> for ArrayVec<A> where
    A::Item: 'a, 
[src]

type Item = A::Item

type Iter = Iter<'a, A::Item>

impl<'a, A: Array> IntoRefIterator<'a> for SmallVec<A> where
    A::Item: 'a, 
[src]

type Item = A::Item

type Iter = Iter<'a, A::Item>

impl<'a, A: Array> IntoRefIterator<'a> for TinyVec<A> where
    A::Item: 'a, 
[src]

type Item = A::Item

type Iter = Iter<'a, A::Item>

impl<'a, A: Array> IntoRefIterator<'a> for ArrayVec<A> where
    A::Item: 'a, 
[src]

type Item = A::Item

type Iter = Iter<'a, A::Item>

impl<'s: 'a, 'a, T> IntoRefIterator<'a> for SliceVec<'s, T>[src]

type Item = T

type Iter = Iter<'a, T>

Loading content...

Implementors

impl<'a: 'b, 'b, S: List> IntoRefIterator<'b> for StorageProxy<'a, S>[src]

type Item = S::Element

type Iter = <S as IntoRefIterator<'b>>::Iter

Loading content...