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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.