Crate spire_enum_macros

Source
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.