Struct rustc_resolve::PerNS [−][src]
pub struct PerNS<T> {
value_ns: T,
type_ns: T,
macro_ns: T,
}🔬 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?
Just a helper ‒ separate structure for each namespace.
Fields
value_ns: T
🔬 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?
type_ns: T
🔬 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?
macro_ns: T
🔬 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<T: Clone> Clone for PerNS<T>[src]
impl<T: Clone> Clone for PerNS<T>fn clone(&self) -> PerNS<T>[src]
fn clone(&self) -> PerNS<T>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<T: Default> Default for PerNS<T>[src]
impl<T: Default> Default for PerNS<T>impl<T: Debug> Debug for PerNS<T>[src]
impl<T: Debug> Debug for PerNS<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T> Index<Namespace> for PerNS<T>[src]
impl<T> Index<Namespace> for PerNS<T>type Output = T
The returned type after indexing.
fn index(&self, ns: Namespace) -> &T[src]
fn index(&self, ns: Namespace) -> &TPerforms the indexing (container[index]) operation.
impl<T> IndexMut<Namespace> for PerNS<T>[src]
impl<T> IndexMut<Namespace> for PerNS<T>