EnumInfo

Trait EnumInfo 

Source
pub trait EnumInfo: Into<&'static str> {
    // Required methods
    fn as_name(&self) -> &'static str;
    fn as_docs(&self) -> &'static [&'static str];

    // Provided method
    fn as_short_doc(&self) -> &'static str { ... }
}

Required Methods§

Source

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

Source

fn as_docs(&self) -> &'static [&'static str]

Provided Methods§

Source

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

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§