Struct rustc_metadata::rmeta::VariantData
source · [−]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
sourceimpl<'tcx, __D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<__D> for VariantData
impl<'tcx, __D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<__D> for VariantData
sourceimpl<'tcx, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for VariantData
impl<'tcx, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for VariantData
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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: 16 bytes