1 2 3 4 5 6 7 8 9
//! Module for the trait to define a `Key`.
use crate::storage::Storage;
/// The trait for a key that can be used to store values in the maps.
pub trait Key<K: 'static, V: 'static>: Copy {
/// The `Storage` implementation to use for the key implementing this trait.
type Storage: Storage<K, V>;
}