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
0: &'tcx VariantDefGenerator
Fields
def_id: DefIdgenerator_layout: &'tcx GeneratorLayout<'tcx>generator_saved_local_names: &'a IndexVec<GeneratorSavedLocal, Option<Symbol>>variant_index: VariantIdxImplementations
Trait Implementations
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for VariantInfo
impl<'a, 'tcx> !Send for VariantInfo
impl<'a, 'tcx> !Sync for VariantInfo
impl<'a, 'tcx> Unpin for VariantInfo
impl<'a, 'tcx> !UnwindSafe for VariantInfo
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
