pub trait Policy {
type K;
type V;
// Required methods
fn insert(map: &mut DynMap, key: Self::K, value: Self::V);
fn get<'a>(map: &'a DynMap, key: &Self::K) -> Option<&'a Self::V>;
fn is_empty(map: &DynMap) -> bool;
}
Required Associated Types§
Required Methods§
fn insert(map: &mut DynMap, key: Self::K, value: Self::V)
fn get<'a>(map: &'a DynMap, key: &Self::K) -> Option<&'a Self::V>
fn is_empty(map: &DynMap) -> bool
Object Safety§
This trait is not object safe.