Crate nameth

Source
Expand description

A simple macro to generate a static &str representing the name of a function, a struct or an enum.

Traits§

NamedEnumValues
Trait implemented by nameth macro to get the name of an enum value.
NamedType
Trait implemented by nameth macro to get the name of a struct, enum, or function.

Attribute Macros§

nameth
Attribute that can be added to structs, enums or function, to generate a static &str representing the name of the item.