Struct rustc::hir::def::PerNS[][src]

pub struct PerNS<T> {
    pub value_ns: T,
    pub type_ns: T,
    pub 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?

Methods

impl<T> PerNS<T>
[src]

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

impl<T> PerNS<Option<T>>
[src]

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

Returns whether all the items in this collection are None.

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

Returns an iterator over the items which are Some.

Trait Implementations

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

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.

Important traits for &'a mut W

Performs the indexing (container[index]) operation.

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

Important traits for &'a mut W

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