[−][src]Enum rustc_resolve::LexicalScopeBinding

pub(crate) enum LexicalScopeBinding<'a> {
    Item(&'a NameBinding<'a>),
    Res(Res<NodeId>),
}

An intermediate resolution result.

This refers to the thing referred by a name. The difference between Res and Item is that items are visible in their whole block, while Reses only from the place they are defined forward.

Variants

Item(&'a NameBinding<'a>)
Res(Res<NodeId>)

Implementations

impl<'a> LexicalScopeBinding<'a>[src]

pub(crate) fn res(self) -> Res<NodeId>[src]

Trait Implementations

impl<'a> Debug for LexicalScopeBinding<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for LexicalScopeBinding<'a>

impl<'a> !Send for LexicalScopeBinding<'a>

impl<'a> !Sync for LexicalScopeBinding<'a>

impl<'a> Unpin for LexicalScopeBinding<'a>

impl<'a> !UnwindSafe for LexicalScopeBinding<'a>

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<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.