[−][src]Enum rustc_resolve::NameBindingKind

pub(crate) enum NameBindingKind<'a> {
    Res(Res<NodeId>, bool),
    Module(&'a ModuleData<'a>),
    Import {
        binding: &'a NameBinding<'a>,
        import: &'a Import<'a>,
        used: Cell<bool>,
    },
}

Variants

Res(Res<NodeId>, bool)
Module(&'a ModuleData<'a>)
Import

Fields of Import

binding: &'a NameBinding<'a>import: &'a Import<'a>used: Cell<bool>

Implementations

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

pub(crate) fn is_import(&self) -> bool[src]

Is this a name binding of a import?

Trait Implementations

impl<'a> Clone for NameBindingKind<'a>[src]

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

Auto Trait Implementations

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

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

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

impl<'a> Unpin for NameBindingKind<'a>

impl<'a> !UnwindSafe for NameBindingKind<'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> 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.