KeyTypeTrait

Trait KeyTypeTrait 

Source
pub trait KeyTypeTrait {
    // Required methods
    fn from_string(s: &str) -> Result<KeyType, String>;
    fn from_index(i: u8) -> Result<KeyType, String>;
    fn to_index(&self) -> u8;
}

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.

Implementors§