pub trait DictKey {
const FIELDS: &'static [&'static str];
// Required method
fn into_usize(self) -> usize;
}Expand description
Trait for types that can be used as dictionary keys
Required Associated Constants§
Required Methods§
Sourcefn into_usize(self) -> usize
fn into_usize(self) -> usize
Convert to usize index
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.