Struct rustc_metadata::rmeta::VariantData
source · struct VariantData {
discr: VariantDiscr,
ctor: Option<(CtorKind, DefIndex)>,
is_non_exhaustive: bool,
}
Fields§
§discr: VariantDiscr
§ctor: Option<(CtorKind, DefIndex)>
If this is unit or tuple-variant/struct, then this is the index of the ctor id.
is_non_exhaustive: bool
Trait Implementations§
source§impl ParameterizedOverTcx for VariantData
impl ParameterizedOverTcx for VariantData
type Value<'tcx> = VariantData
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