[−][src]Enum rustc_mir_build::build::LocalsForNode

pub(in build) enum LocalsForNode {
    One(Local),
    ForGuard {
        ref_for_guard: Local,
        for_arm_body: Local,
    },
}

Variants

One(Local)

In the usual case, a HirId for an identifier maps to at most one Local declaration.

ForGuard

The exceptional case is identifiers in a match arm's pattern that are referenced in a guard of that match arm. For these, we have 2 Locals.

Fields of ForGuard

ref_for_guard: Localfor_arm_body: Local

Implementations

impl LocalsForNode[src]

pub(in build) fn local_id(
    &self,
    for_guard: ForGuard
) -> Local
[src]

Trait Implementations

impl Debug for LocalsForNode[src]

Auto Trait Implementations

impl RefUnwindSafe for LocalsForNode

impl Send for LocalsForNode

impl Sync for LocalsForNode

impl Unpin for LocalsForNode

impl UnwindSafe for LocalsForNode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[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<T> From<T> for T[src]

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

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.