BTreeCache

Type Alias BTreeCache 

Source
pub type BTreeCache<'f, I, O> = GenericCache<'f, BTreeMap<I, O>>;
Expand description

A cache for a function which uses a BTreeMap.

The cache takes ownership of all inputs, but only passes a reference to the function, allowing it to store the input in the cache without any copies or clones.

The requirements for a BTreeMap must be met, specifically the keys must implement Ord

Aliased Typeยง

pub struct BTreeCache<'f, I, O> { /* private fields */ }