pub trait EnumDescriptor {
    // Required methods
    fn name_with_token_count() -> (String, usize);
    fn arg_description_with_token_count() -> (String, 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() -> (String, 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() -> (String, usize)

Object Safety§

This trait is not object safe.

Implementors§