Struct rustc_resolve::BindingKey [−][src]
Expand description
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: Namespace
disambiguator: 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 20 bytes