[−][src]Enum rustc_codegen_llvm::debuginfo::metadata::VariantInfo

pub(in debuginfo::metadata) 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)
Generator

Fields of Generator

def_id: DefIdgenerator_layout: &'tcx GeneratorLayout<'tcx>generator_saved_local_names: &'a IndexVec<GeneratorSavedLocal, Option<Symbol>>variant_index: VariantIdx

Implementations

impl<'tcx, '_> VariantInfo<'_, 'tcx>[src]

pub(in debuginfo::metadata) fn map_struct_name<R>(
    &self,
    f: impl FnOnce(&str) -> R
) -> R
[src]

pub(in debuginfo::metadata) fn variant_name(
    &self
) -> String
[src]

pub(in debuginfo::metadata) fn field_name(
    &self,
    i: usize
) -> String
[src]

pub(in debuginfo::metadata) fn source_info<'ll>(
    &self,
    cx: &CodegenCx<'ll, 'tcx>
) -> Option<SourceInfo<'ll>>
[src]

pub(in debuginfo::metadata) fn is_artificial(
    &self
) -> bool
[src]

Trait Implementations

impl<'a, 'tcx> Clone for VariantInfo<'a, 'tcx>[src]

impl<'a, 'tcx> Copy for VariantInfo<'a, 'tcx>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.