[][src]Trait swim_mem::resident::ResidentIntoRefIterator

pub trait ResidentIntoRefIterator<'a, L: Lease>: Resident {
    type Item;
    type IntoIter: Iterator<Item = Self::Item>;
    fn resident_into_iter(lease: &'a L) -> Self::IntoIter;
}

An immutably iterable Resident of a raw memory Lease.

Associated Types

type Item

The type of element to iterator over.

type IntoIter: Iterator<Item = Self::Item>

The type of iterator to return.

Loading content...

Required methods

fn resident_into_iter(lease: &'a L) -> Self::IntoIter

Returns a new Iterator that consumes the elements of the lease.

Loading content...

Implementors

impl<'a, L: Lease<Data = T, Meta = BufHeader<M>>, T: 'a, M> ResidentIntoRefIterator<'a, L> for Buf<T, M>[src]

type Item = &'a T

type IntoIter = Iter<'a, T>

Loading content...