Trait ItemStore

Source
pub trait ItemStore<K, V>:
    Clone
    + Send
    + Sync {
    // Required methods
    fn key<'a>(&'a self) -> &'a K;
    fn val<'a>(&'a self) -> &'a V;
    fn new(key: K, val: V) -> Self;
}

Required Methods§

Source

fn key<'a>(&'a self) -> &'a K

Source

fn val<'a>(&'a self) -> &'a V

Source

fn new(key: K, val: V) -> Self

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.

Implementors§

Source§

impl<K: Clone + Send + Sync, V: Clone + Send + Sync> ItemStore<K, V> for CopyStore<K, V>

Source§

impl<K: Send + Sync, V: Send + Sync> ItemStore<K, V> for ShareStore<K, V>