Skip to main content

cache_result

Function cache_result 

Source
fn cache_result<K, V>(
    cache: &mut HashMap<K, V>,
    key: K,
    value: V,
    max_entries: usize,
)
where K: Eq + Hash,