[−][src]Struct rustc_mir::dataflow::move_paths::MovePathLookup
Tables mapping from a place to its MovePathIndex.
Fields
locals: IndexVec<Local, MovePathIndex>projections: FxHashMap<(MovePathIndex, ProjectionElem<AbstractOperand, AbstractType>), MovePathIndex>projections are made from a base-place and a projection elem. The base-place will have a unique MovePathIndex; we use the latter as the index into the outer vector (narrowing subsequent search so that it is solely relative to that base-place). For the remaining lookup, we map the projection elem to the associated MovePathIndex.
Implementations
impl MovePathLookup[src]
pub fn find(&self, place: PlaceRef<'_>) -> LookupResult[src]
pub fn find_local(&self, local: Local) -> MovePathIndex[src]
pub fn iter_locals_enumerated(
&self
) -> Enumerated<Local, Iter<'_, MovePathIndex>>[src]
&self
) -> Enumerated<Local, Iter<'_, MovePathIndex>>
An enumerated iterator of locals and their associated
MovePathIndexes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MovePathLookup[src]
impl Send for MovePathLookup[src]
impl Sync for MovePathLookup[src]
impl Unpin for MovePathLookup[src]
impl UnwindSafe for MovePathLookup[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.