Struct lru_time_cache::Iter[][src]

pub struct Iter<'a, Key, Value> { /* fields omitted */ }

An iterator over an LruCache's entries that updates the timestamps as values are traversed. Values are produced in the most recently used order.

Trait Implementations

impl<'a, Key, Value> Iterator for Iter<'a, Key, Value> where
    Key: Ord + Clone
[src]

type Item = (&'a Key, &'a Value)

The type of the elements being iterated over.

fn next(&mut self) -> Option<(&'a Key, &'a Value)>[src]

Returns the next element in the cache and moves it to the top of the cache. The most recently used items are yield first.

Auto Trait Implementations

impl<'a, Key, Value> RefUnwindSafe for Iter<'a, Key, Value> where
    Key: RefUnwindSafe,
    Value: RefUnwindSafe
[src]

impl<'a, Key, Value> Send for Iter<'a, Key, Value> where
    Key: Send,
    Value: Send
[src]

impl<'a, Key, Value> Sync for Iter<'a, Key, Value> where
    Key: Sync,
    Value: Sync
[src]

impl<'a, Key, Value> Unpin for Iter<'a, Key, Value>[src]

impl<'a, Key, Value> !UnwindSafe for Iter<'a, Key, Value>[src]

Blanket Implementations

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

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

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

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.