Struct rustc_metadata::rmeta::VariantData
source · struct VariantData {
idx: VariantIdx,
discr: VariantDiscr,
ctor: Option<(CtorKind, DefIndex)>,
is_non_exhaustive: bool,
}
Fields§
§idx: VariantIdx
§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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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: 24 bytes