Enum rustc::hir::def::Namespace[][src]

pub enum Namespace {
    TypeNS,
    ValueNS,
    MacroNS,
}
🔬 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?

Different kinds of symbols don't influence each other.

Therefore, they have a separate universe (namespace).

Variants

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

Trait Implementations

impl Copy for Namespace
[src]

impl Clone for Namespace
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Namespace
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Namespace
[src]

impl PartialOrd for Namespace
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Namespace
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for Namespace
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Namespace
[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 Send for Namespace

impl Sync for Namespace