Enum rustc_codegen_llvm::debuginfo::metadata::VariantInfo [−][src]
enum VariantInfo<'a, 'tcx> {
Adt(&'tcx VariantDef),
Generator {
def_id: DefId,
generator_layout: &'tcx GeneratorLayout<'tcx>,
generator_saved_local_names: &'a IndexVec<GeneratorSavedLocal, Option<Symbol>>,
variant_index: VariantIdx,
},
}
Variants
Adt(&'tcx VariantDef)
Tuple Fields of Adt
0: &'tcx VariantDef
Fields of Generator
def_id: DefId
generator_layout: &'tcx GeneratorLayout<'tcx>
generator_saved_local_names: &'a IndexVec<GeneratorSavedLocal, Option<Symbol>>
variant_index: VariantIdx
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for VariantInfo<'a, 'tcx>
impl<'a, 'tcx> !Send for VariantInfo<'a, 'tcx>
impl<'a, 'tcx> !Sync for VariantInfo<'a, 'tcx>
impl<'a, 'tcx> Unpin for VariantInfo<'a, 'tcx>
impl<'a, 'tcx> !UnwindSafe for VariantInfo<'a, 'tcx>
Blanket Implementations
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: 32 bytes
Size for each variant:
Adt
: 12 bytesGenerator
: 28 bytes