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

🔬 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?

🔬 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?

🔬 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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Default> Default for PerNS<T>
[src]

Returns the "default value" for a type. Read more

impl<T: Debug> Debug for PerNS<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Index<Namespace> for PerNS<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T> IndexMut<Namespace> for PerNS<T>
[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl<T> Send for PerNS<T> where
    T: Send

impl<T> Sync for PerNS<T> where
    T: Sync