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§
fn get_or_insert_with<F>(&mut self, key: K, f: F) -> &mut Vwhere
F: FnOnce() -> V,
Object Safety§
This trait is not object safe.