Struct rustc_resolve::NameBinding [−][src]
pub struct NameBinding<'a> { kind: NameBindingKind<'a>, expansion: Mark, span: Span, vis: Visibility, }
🔬 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 a possibly-private value, type, or module definition.
Fields
kind: NameBindingKind<'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?
expansion: Mark
🔬 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?
span: Span
🔬 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?
vis: Visibility
🔬 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> NameBinding<'a>
[src]
impl<'a> NameBinding<'a>
fn module(&self) -> Option<&'a ModuleData<'a>>
[src]
fn module(&self) -> Option<&'a ModuleData<'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?
fn def(&self) -> Def
[src]
fn def(&self) -> Def
🔬 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?
fn def_ignoring_ambiguity(&self) -> Def
[src]
fn def_ignoring_ambiguity(&self) -> Def
🔬 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?
fn get_macro(&self, resolver: &mut Resolver<'a>) -> Lrc<SyntaxExtension>
[src]
fn get_macro(&self, resolver: &mut Resolver<'a>) -> Lrc<SyntaxExtension>
🔬 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?
fn pseudo_vis(&self) -> Visibility
[src]
fn pseudo_vis(&self) -> Visibility
🔬 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?
fn is_variant(&self) -> bool
[src]
fn is_variant(&self) -> bool
🔬 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?
fn is_extern_crate(&self) -> bool
[src]
fn is_extern_crate(&self) -> bool
🔬 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?
fn is_import(&self) -> bool
[src]
fn is_import(&self) -> bool
🔬 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?
fn is_renamed_extern_crate(&self) -> bool
[src]
fn is_renamed_extern_crate(&self) -> bool
🔬 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?
fn is_glob_import(&self) -> bool
[src]
fn is_glob_import(&self) -> bool
🔬 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?
fn is_importable(&self) -> bool
[src]
fn is_importable(&self) -> bool
🔬 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?
fn is_macro_def(&self) -> bool
[src]
fn is_macro_def(&self) -> bool
🔬 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?
fn descr(&self) -> &'static str
[src]
fn descr(&self) -> &'static str
🔬 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 NameBinding<'a>
[src]
impl<'a> Clone for NameBinding<'a>
fn clone(&self) -> NameBinding<'a>
[src]
fn clone(&self) -> NameBinding<'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> Debug for NameBinding<'a>
[src]
impl<'a> Debug for NameBinding<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> ToNameBinding<'a> for &'a NameBinding<'a>
[src]
impl<'a> ToNameBinding<'a> for &'a NameBinding<'a>
fn to_name_binding(self, _: &'a ResolverArenas<'a>) -> &'a NameBinding<'a>
[src]
fn to_name_binding(self, _: &'a ResolverArenas<'a>) -> &'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?
Auto Trait Implementations
impl<'a> !Send for NameBinding<'a>
impl<'a> !Send for NameBinding<'a>
impl<'a> !Sync for NameBinding<'a>
impl<'a> !Sync for NameBinding<'a>