Trait acme_core::prelude::Cache

source ·
pub trait Cache<K, V> {
    // Required method
    fn get_or_insert_with<F>(&mut self, key: K, f: F) -> &mut V
       where F: FnOnce() -> V;
}

Required Methods§

source

fn get_or_insert_with<F>(&mut self, key: K, f: F) -> &mut V
where F: FnOnce() -> V,

Object Safety§

This trait is not object safe.

Implementors§