Expand description
This crate contains procedural macros distributed by the crate spire_enum
.
It is not recommended to use this crate directly, instead, use spire_enum
instead.
For more information, read the main crate’s documentation.
Attribute Macros§
- delegate_
impl - See the crate-level documentation
- delegated_
enum - See the crate-level documentation
- discriminant_
generic_ table - Similar to
variant_generic_table
, except this is meant for enums with unit variants. - variant_
generic_ table - Similar to
variant_type_table
, except the values associated with each variant are a generic parameter, instead of each variant’s type. - variant_
type_ table - Given an enum, generates a struct that contains one of each of the enum’s variant types, and several implementations for the generated type as well.