pub struct PrimitiveLayouts<'tcx> {Show 19 fields
pub unit: TyAndLayout<'tcx>,
pub i8: TyAndLayout<'tcx>,
pub i16: TyAndLayout<'tcx>,
pub i32: TyAndLayout<'tcx>,
pub i64: TyAndLayout<'tcx>,
pub i128: TyAndLayout<'tcx>,
pub isize: TyAndLayout<'tcx>,
pub u8: TyAndLayout<'tcx>,
pub u16: TyAndLayout<'tcx>,
pub u32: TyAndLayout<'tcx>,
pub u64: TyAndLayout<'tcx>,
pub u128: TyAndLayout<'tcx>,
pub usize: TyAndLayout<'tcx>,
pub bool: TyAndLayout<'tcx>,
pub unit_ptr_mut: TyAndLayout<'tcx>,
pub unit_ptr_const: TyAndLayout<'tcx>,
pub void_ptr_mut: TyAndLayout<'tcx>,
pub void_ptr_const: TyAndLayout<'tcx>,
pub fn_ptr: TyAndLayout<'tcx>,
}Expand description
Precomputed layouts of primitive types
Fields§
§unit: TyAndLayout<'tcx>§i8: TyAndLayout<'tcx>§i16: TyAndLayout<'tcx>§i32: TyAndLayout<'tcx>§i64: TyAndLayout<'tcx>§i128: TyAndLayout<'tcx>§isize: TyAndLayout<'tcx>§u8: TyAndLayout<'tcx>§u16: TyAndLayout<'tcx>§u32: TyAndLayout<'tcx>§u64: TyAndLayout<'tcx>§u128: TyAndLayout<'tcx>§usize: TyAndLayout<'tcx>§bool: TyAndLayout<'tcx>§unit_ptr_mut: TyAndLayout<'tcx>§unit_ptr_const: TyAndLayout<'tcx>§void_ptr_mut: TyAndLayout<'tcx>§void_ptr_const: TyAndLayout<'tcx>§fn_ptr: TyAndLayout<'tcx>Implementations§
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for PrimitiveLayouts<'tcx>
impl<'tcx> !UnwindSafe for PrimitiveLayouts<'tcx>
impl<'tcx> DynSend for PrimitiveLayouts<'tcx>where
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: DynSend,
&'tcx LayoutData<FieldIdx, VariantIdx>: DynSend,
impl<'tcx> DynSync for PrimitiveLayouts<'tcx>where
Interned<'tcx, WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>>: DynSync,
Interned<'tcx, LayoutData<FieldIdx, VariantIdx>>: DynSync,
impl<'tcx> Forget for PrimitiveLayouts<'tcx>
impl<'tcx> Freeze for PrimitiveLayouts<'tcx>
impl<'tcx> Move for PrimitiveLayouts<'tcx>
impl<'tcx> Send for PrimitiveLayouts<'tcx>
impl<'tcx> Sync for PrimitiveLayouts<'tcx>where
AdtDef<'tcx>: Sync,
GenericArgs<'tcx>: Sync,
DefId: Sync,
Ty<'tcx>: Sync,
Interned<'tcx, WithCachedTypeInfo<ConstKind<TyCtxt<'tcx>>>>: Sync,
Pattern<'tcx>: Sync,
Interned<'tcx, RegionKind<TyCtxt<'tcx>>>: Sync,
&'tcx RawList<(), BoundVariableKind<TyCtxt<'tcx>>>: Sync,
&'tcx RawList<(), Ty<'tcx>>: Sync,
&'tcx RawList<(), Binder<TyCtxt<'tcx>, ExistentialPredicate<TyCtxt<'tcx>>>>: Sync,
ParamTy: Sync,
ErrorGuaranteed: Sync,
InternalBitFlags: Sync,
NonZero<usize>: Sync,
RawVecInner: Sync,
NonZero<u16>: Sync,
impl<'tcx> Unpin for PrimitiveLayouts<'tcx>
impl<'tcx> UnsafeUnpin for PrimitiveLayouts<'tcx>where
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: UnsafeUnpin,
&'tcx LayoutData<FieldIdx, VariantIdx>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
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: 304 bytes