Struct lru_map::LRUMap[][src]

pub struct LRUMap<K, T, const N: usize> { /* fields omitted */ }
Expand description

LRU map

Implementations

Put a key-value pair Returns the old value if the key exists, otherwise returns None

get the key-value pair and touch it

get the key-value pair and touch it

Remove a key

Remove keys which match the predicate.

Clear the LRU Cache

Number of items

Touch the keys which match the predicate.

Iterator for keys and values

Iterator for keys

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.