Struct rustc_resolve::resolve_imports::NameResolution [−][src]
pub struct NameResolution<'a> {
single_imports: SingleImports<'a>,
pub binding: Option<&'a NameBinding<'a>>,
shadows_glob: Option<&'a NameBinding<'a>>,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Records information about the resolution of a name in a namespace of a module.
Fields
single_imports: SingleImports<'a>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
The single imports that define the name in the namespace.
binding: Option<&'a NameBinding<'a>>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
The least shadowable known binding for this name, or None if there are no known bindings.
shadows_glob: Option<&'a NameBinding<'a>>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl<'a> NameResolution<'a>[src]
impl<'a> NameResolution<'a>fn binding(&self) -> Option<&'a NameBinding<'a>>[src]
fn binding(&self) -> Option<&'a NameBinding<'a>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl<'a> Clone for NameResolution<'a>[src]
impl<'a> Clone for NameResolution<'a>fn clone(&self) -> NameResolution<'a>[src]
fn clone(&self) -> NameResolution<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<'a> Default for NameResolution<'a>[src]
impl<'a> Default for NameResolution<'a>fn default() -> NameResolution<'a>[src]
fn default() -> NameResolution<'a>Returns the "default value" for a type. Read more
impl<'a> Debug for NameResolution<'a>[src]
impl<'a> Debug for NameResolution<'a>Auto Trait Implementations
impl<'a> !Send for NameResolution<'a>
impl<'a> !Send for NameResolution<'a>impl<'a> !Sync for NameResolution<'a>
impl<'a> !Sync for NameResolution<'a>