[−][src]Struct rustc_codegen_llvm::debuginfo::metadata::EnumMemberDescriptionFactory

pub(in debuginfo::metadata) struct EnumMemberDescriptionFactory<'ll, 'tcx> {
    enum_type: Ty<'tcx>,
    layout: TyAndLayout<'tcx>,
    tag_type_metadata: Option<&'ll DIType>,
    containing_scope: &'ll DIScope,
    span: Span,
}

Describes the members of an enum value; an enum is described as a union of structs in DWARF. This MemberDescriptionFactory provides the description for the members of this union; so for every variant of the given enum, this factory will produce one MemberDescription (all with no name and a fixed offset of zero bytes).

Fields

enum_type: Ty<'tcx>layout: TyAndLayout<'tcx>tag_type_metadata: Option<&'ll DIType>containing_scope: &'ll DIScopespan: Span

Implementations

impl<'ll, 'tcx> EnumMemberDescriptionFactory<'ll, 'tcx>[src]

pub(in debuginfo::metadata) fn create_member_descriptions(
    &self,
    cx: &CodegenCx<'ll, 'tcx>
) -> Vec<MemberDescription<'ll>>
[src]

Auto Trait Implementations

impl<'ll, 'tcx> !RefUnwindSafe for EnumMemberDescriptionFactory<'ll, 'tcx>

impl<'ll, 'tcx> !Send for EnumMemberDescriptionFactory<'ll, 'tcx>

impl<'ll, 'tcx> !Sync for EnumMemberDescriptionFactory<'ll, 'tcx>

impl<'ll, 'tcx> Unpin for EnumMemberDescriptionFactory<'ll, 'tcx>

impl<'ll, 'tcx> !UnwindSafe for EnumMemberDescriptionFactory<'ll, '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, 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.