Enum rustc_transmute::layout::rustc::Def
source · pub enum Def<'tcx> {
Adt(AdtDef<'tcx>),
Variant(&'tcx VariantDef),
Field(&'tcx FieldDef),
Primitive,
}
Expand description
A visibility node in the layout.
Variants§
Trait Implementations§
impl<'tcx> Copy for Def<'tcx>
impl<'tcx> Def for Def<'tcx>
impl<'tcx> Eq for Def<'tcx>
impl<'tcx> StructuralEq for Def<'tcx>
impl<'tcx> StructuralPartialEq for Def<'tcx>
Auto Trait Implementations§
impl<'tcx> RefUnwindSafe for Def<'tcx>
impl<'tcx> Send for Def<'tcx>
impl<'tcx> Sync for Def<'tcx>
impl<'tcx> Unpin for Def<'tcx>
impl<'tcx> UnwindSafe for Def<'tcx>
Blanket Implementations§
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: 16 bytes
Size for each variant:
Adt
: 8 bytesVariant
: 8 bytesField
: 8 bytesPrimitive
: 0 bytes