pub trait MapStore {
type Key;
type Value;
const LEN: usize;
// Required methods
fn get_key(index: usize) -> Option<Self::Key>;
fn get_value(index: usize) -> Option<Self::Value>;
}
Required Associated Constants§
Required Associated Types§
Required Methods§
fn get_key(index: usize) -> Option<Self::Key>
fn get_value(index: usize) -> Option<Self::Value>
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.