Struct cranelift_isle::sema::Variant [−][src]
Expand description
A variant of an enum.
Fields
name: Sym
The name of this variant.
fullname: Sym
The full, prefixed-with-the-enum’s-name name of this variant.
E.g. if the enum is Foo
and this variant is Bar
, then the
fullname
is Foo.Bar
.
id: VariantId
The id of this variant, i.e. the index of this variant within its
enum’s Type::Enum::variants
.
fields: Vec<Field>
The data fields of this enum variant.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Variant
impl UnwindSafe for Variant
Blanket Implementations
Mutably borrows from an owned value. Read more