struct EnumMemberDescriptionFactory<'ll, 'tcx> {
enum_type: Ty<'tcx>,
layout: TyAndLayout<'tcx>,
tag_type_metadata: Option<&'ll DIType>,
common_members: Vec<Option<&'ll DIType>>,
}Expand description
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>common_members: Vec<Option<&'ll DIType>>Implementations
sourceimpl<'ll, 'tcx> EnumMemberDescriptionFactory<'ll, 'tcx>
impl<'ll, 'tcx> EnumMemberDescriptionFactory<'ll, 'tcx>
fn create_member_descriptions(
&self,
cx: &CodegenCx<'ll, 'tcx>
) -> Vec<MemberDescription<'ll>>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
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: 56 bytes