DictKey

Trait DictKey 

Source
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§

Source

const FIELDS: &'static [&'static str]

Required Methods§

Source

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.

Implementors§