struct VariantInfo
pub struct VariantInfo :: [Equatable, Debug]
Conforms to Equatable, Debug.
Describes a variant of an enum, in declaration order, and the fields of its payload.
A positional field is named by its position, 0, 1, …. value is the integer C holds for
the variant of an enum with @Layout — written after =, or one more than the variant
before —, and its index in any other enum.
Fields
pub name: string
pub index: int
pub payload: FieldInfo[]
pub value: int