[−][src]Struct contrie::raw::iterator::Iter
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]
C: Config,
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> !Sync for Iter<'a, C, S>
impl<'a, C, S> Unpin for Iter<'a, C, S>
impl<'a, C, S> !Send for Iter<'a, C, S>
impl<'a, C, S> !UnwindSafe for Iter<'a, C, S>
impl<'a, C, S> !RefUnwindSafe for Iter<'a, C, S>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,