Module variant

Source

Structs§

DataMatchArm
Code generator for an enum variant in a data-carrying match position. This is placed in generated from_list calls for the parent enum. Unit variants wrapped in this type will emit code to produce an “unsupported format” error.
UnitMatchArm
Code generator for an enum variant in a unit match position. This is placed in generated from_string calls for the parent enum. Value-carrying variants wrapped in this type will emit code to produce an “unsupported format” error.
Variant
A variant of the enum which is deriving FromMeta.