pub struct PlaceTy<'tcx, Prov = AllocId>where
Prov: Provenance,{
place: Place<Prov>,
pub layout: TyAndLayout<'tcx, Ty<'tcx>>,
pub align: Align,
}
Fields§
§place: Place<Prov>
§layout: TyAndLayout<'tcx, Ty<'tcx>>
§align: Align
rustc does not have a proper way to represent the type of a field of a repr(packed)
struct:
it needs to have a different alignment than the field type would usually have.
So we represent this here with a separate field that “overwrites” layout.align
.
This means layout.align
should never be used for a PlaceTy
!
Trait Implementations§
source§impl VisitTags for PlaceTy<'_, Provenance>
impl VisitTags for PlaceTy<'_, Provenance>
Auto Trait Implementations§
impl<'tcx, Prov = AllocId> !RefUnwindSafe for PlaceTy<'tcx, Prov>
impl<'tcx, Prov = AllocId> !Send for PlaceTy<'tcx, Prov>
impl<'tcx, Prov = AllocId> !Sync for PlaceTy<'tcx, Prov>
impl<'tcx, Prov> Unpin for PlaceTy<'tcx, Prov>where
Prov: Unpin,
impl<'tcx, Prov = AllocId> !UnwindSafe for PlaceTy<'tcx, Prov>
Blanket Implementations§
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.