Expand description
A PlaceWithHirId
represents how a value is located in memory.
This is an HIR version of rustc_middle::mir::Place
.
Fields
hir_id: HirId
HirId
of the expression or pattern producing this value.
place: Place<'tcx>
Information about the Place
.
Trait Implementations
sourceimpl TryFrom<&PlaceWithHirId<'_>> for TrackedValue
impl TryFrom<&PlaceWithHirId<'_>> for TrackedValue
type Error = TrackedValueConversionError
type Error = TrackedValueConversionError
The type returned in the event of a conversion error.
sourcefn try_from(place_with_id: &PlaceWithHirId<'_>) -> Result<Self, Self::Error>
fn try_from(place_with_id: &PlaceWithHirId<'_>) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for PlaceWithHirId<'tcx>
impl<'tcx> Send for PlaceWithHirId<'tcx>
impl<'tcx> Sync for PlaceWithHirId<'tcx>
impl<'tcx> Unpin for PlaceWithHirId<'tcx>
impl<'tcx> !UnwindSafe for PlaceWithHirId<'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'tcx, T> IsSuggestable<'tcx> for Twhere
T: TypeVisitable<'tcx>,
impl<'tcx, T> IsSuggestable<'tcx> for Twhere
T: TypeVisitable<'tcx>,
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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