pub trait NoPolicy<K, V, P> {
// Required methods
fn get_no_policy(&self, key: &K) -> Option<V>;
fn insert_no_policy(&self, key: K, value: V) -> Option<V>;
fn remove_no_policy(&self, key: &K) -> Option<V>;
fn policy(&self) -> &P;
}Expand description
The NoPolicy trait is used for external policy implementations.
These methods are explicity kept seperate outside the crate to not pollute the API.
Required Methods§
fn get_no_policy(&self, key: &K) -> Option<V>
fn insert_no_policy(&self, key: K, value: V) -> Option<V>
fn remove_no_policy(&self, key: &K) -> Option<V>
fn policy(&self) -> &P
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".