[][src]Struct rustc::mir::PlaceRef

pub struct PlaceRef<'a, 'tcx> {
    pub local: Local,
    pub projection: &'a [PlaceElem<'tcx>],
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Fields

local: Local
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

projection: &'a [PlaceElem<'tcx>]
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Methods

impl<'a, 'tcx> PlaceRef<'a, 'tcx>[src]

pub fn local_or_deref_local(&self) -> Option<Local>[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Finds the innermost Local from this Place, if it is either a local itself or a single deref of a local.

pub fn as_local(&self) -> Option<Local>[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

If this place represents a local variable like _X with no projections, return Some(_X).

Trait Implementations

impl<'a, 'tcx> Clone for PlaceRef<'a, 'tcx>[src]

impl<'a, 'tcx> Copy for PlaceRef<'a, 'tcx>[src]

impl<'a, 'tcx> Debug for PlaceRef<'a, 'tcx>[src]

impl<'a, 'tcx> Eq for PlaceRef<'a, 'tcx>[src]

impl<'a, 'tcx> Hash for PlaceRef<'a, 'tcx>[src]

impl<'a, 'tcx> Ord for PlaceRef<'a, 'tcx>[src]

impl<'a, 'tcx> PartialEq<PlaceRef<'a, 'tcx>> for PlaceRef<'a, 'tcx>[src]

impl<'a, 'tcx> PartialOrd<PlaceRef<'a, 'tcx>> for PlaceRef<'a, 'tcx>[src]

impl<'a, 'tcx> StructuralEq for PlaceRef<'a, 'tcx>[src]

impl<'a, 'tcx> StructuralPartialEq for PlaceRef<'a, 'tcx>[src]

Auto Trait Implementations

impl<'a, 'tcx> !RefUnwindSafe for PlaceRef<'a, 'tcx>

impl<'a, 'tcx> !Send for PlaceRef<'a, 'tcx>

impl<'a, 'tcx> !Sync for PlaceRef<'a, 'tcx>

impl<'a, 'tcx> Unpin for PlaceRef<'a, 'tcx> where
    'tcx: 'a, 

impl<'a, 'tcx> !UnwindSafe for PlaceRef<'a, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ArenaAllocatable for T where
    T: Copy
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

impl<E> SpecializationError for E[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]