[−][src]Struct rustc_resolve::BindingKey

pub(crate) struct BindingKey {
    ident: Ident,
    ns: Namespace,
    disambiguator: u32,
}

A key that identifies a binding in a given Module.

Multiple bindings in the same module can have the same key (in a valid program) if all but one of them come from glob imports.

Fields

ident: Ident

The identifier for the binding, aways the normalize_to_macros_2_0 version of the identifier.

ns: Namespacedisambiguator: u32

0 if ident is not _, otherwise a value that's unique to the specific _ in the expanded AST that introduced this binding.

Trait Implementations

impl Clone for BindingKey[src]

impl Copy for BindingKey[src]

impl Debug for BindingKey[src]

impl Eq for BindingKey[src]

impl Hash for BindingKey[src]

impl PartialEq<BindingKey> for BindingKey[src]

impl StructuralEq for BindingKey[src]

impl StructuralPartialEq for BindingKey[src]

Auto Trait Implementations

impl RefUnwindSafe for BindingKey

impl !Send for BindingKey

impl !Sync for BindingKey

impl Unpin for BindingKey

impl UnwindSafe for BindingKey

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.