Struct rustc_borrowck::Place [−][src]
pub(crate) struct Place<'tcx> {
pub local: Local,
pub projection: &'tcx List<ProjectionElem<Local, &'tcx TyS<'tcx>>>,
}Expand description
A path to a value; something that can be evaluated without changing or disturbing program state.
Fields
local: Localprojection: &'tcx List<ProjectionElem<Local, &'tcx TyS<'tcx>>>projection out of a place (access a field, deref a pointer, etc)
Trait Implementations
fn ignore_borrow(
&self,
tcx: TyCtxt<'tcx>,
body: &Body<'tcx>,
locals_state_at_exit: &LocalsStateAtExit
) -> bool
fn ignore_borrow(
&self,
tcx: TyCtxt<'tcx>,
body: &Body<'tcx>,
locals_state_at_exit: &LocalsStateAtExit
) -> bool
Returns true if we can safely ignore borrows of this place.
This is true whenever there is no action that the user can do
to the place self that would invalidate the borrow. This is true
for borrows of raw pointer dereferents as well as shared references. Read more
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for Place<'tcx>
impl<'tcx> !UnwindSafe for Place<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
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