Trait EnumDescriptor

Source
pub trait EnumDescriptor {
    // Required methods
    fn name_with_token_count() -> &'static (&'static str, usize);
    fn arg_description_with_token_count() -> &'static (&'static str, usize);
}
Expand description

A trait to provide a descriptor for an enumeration. This includes the name of the enum and the count of tokens in its name.

Required Methods§

Source

fn name_with_token_count() -> &'static (&'static str, usize)

Returns the name of the enum and the count of tokens in its name.

§Returns

A tuple where the first element is a String representing the name of the enum, and the second element is a usize representing the count of tokens in the enum’s name.

Source

fn arg_description_with_token_count() -> &'static (&'static str, usize)

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§