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: Alignrustc 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> Send for PlaceTy<'tcx, Prov>where Prov: Send,
impl<'tcx, Prov> Sync for PlaceTy<'tcx, Prov>where Prov: Sync,
impl<'tcx, Prov> Unpin for PlaceTy<'tcx, Prov>where Prov: Unpin,
impl<'tcx, Prov = AllocId> !UnwindSafe for PlaceTy<'tcx, Prov>
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: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.