Struct asset_lru::CostBasedLru[][src]

pub struct CostBasedLru<K: ?Sized + Hash + Eq, V> { /* fields omitted */ }
Expand description

An LRU cache which bases eviction on the total cost (e.g. size) of the contained objects.

See crate-level documentation for details.

Implementations

Add an entry to the cache. Return the old entry if this key was already present.

Iterator visiting entries in most-recently-used order.

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.