pub trait DictKey {
type Array<T>: Array<T>;
const VARIANTS: &'static [&'static str];
// Required methods
fn from_index(index: usize) -> Self;
fn as_index(&self) -> usize;
}Expand description
Trait for types that can be used as dictionary keys
Required Associated Constants§
Required Associated Types§
Required Methods§
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.