[][src]Struct contrie::raw::iterator::Iter

pub struct Iter<'a, C, S> where
    C: Config
{ /* fields omitted */ }

An iterator-like structure for the raw trie.

This wraps the map and provides borrowed instances of the payloads. Note that due to the borrowing from the iterator itself, it is not possible to create the true Iterator. As this is used to implement the iterators of the wrapper convenience types, this is not considered a serious limitation.

Quirks

As noted in the crate-level documentation, changes to the content of the map done during the lifetime of the iterator (both in the current thread and other threads) may or may not be reflected in the returned values.

Methods

impl<'a, C, S> Iter<'a, C, S> where
    C: Config
[src]

pub fn new<'m: 'a>(map: &'m Raw<C, S>) -> Self[src]

Creates a new iterator, borrowing from the map.

pub fn next(&mut self) -> Option<&C::Payload>[src]

Produces another value, just like Iterator::next, except the value is bound to the lifetime of the iterator structure.

Auto Trait Implementations

impl<'a, C, S> Unpin for Iter<'a, C, S>

impl<'a, C, S> !Sync for Iter<'a, C, S>

impl<'a, C, S> !Send for Iter<'a, C, S>

impl<'a, C, S> !RefUnwindSafe for Iter<'a, C, S>

impl<'a, C, S> !UnwindSafe for Iter<'a, C, S>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]