Struct rustc_metadata::rmeta::VariantData [−][src]
struct VariantData {
ctor_kind: CtorKind,
discr: VariantDiscr,
ctor: Option<DefIndex>,
is_non_exhaustive: bool,
}
Fields
ctor_kind: CtorKind
discr: VariantDiscr
ctor: Option<DefIndex>
If this is unit or tuple-variant/struct, then this is the index of the ctor id.
is_non_exhaustive: bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VariantData
impl Send for VariantData
impl Sync for VariantData
impl Unpin for VariantData
impl UnwindSafe for VariantData
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 20 bytes