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§
Provided Methods§
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.