Trait Enum

Source
pub trait Enum: Sized {
    // Required methods
    fn to_symbol_name(&self) -> &'static str;
    fn from_symbol_name(str: &str) -> Option<Self>;
}

Required Methods§

Source

fn to_symbol_name(&self) -> &'static str

Source

fn from_symbol_name(str: &str) -> Option<Self>

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§