Struct rustc_typeck::hir::def_id::DefId [] [src]

pub struct DefId {
    pub krate: CrateNum,
    pub index: DefIndex,
}
🔬 This is a nightly-only experimental API. (rustc_private)

A DefId identifies a particular definition, by combining a crate index and a def index.

Fields

🔬 This is a nightly-only experimental API. (rustc_private)
🔬 This is a nightly-only experimental API. (rustc_private)

Methods

impl DefId
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

Trait Implementations

impl Decodable for DefId
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

impl PartialOrd<DefId> for DefId
[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 PartialEq<DefId> for DefId
[src]

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

This method tests for !=.

impl Hash for DefId
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl DepGraphSafe for DefId
[src]

A DefId on its own doesn't give access to any particular state. You must fetch the state from the various maps or generate on-demand queries, all of which create reads.

impl Clone for DefId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for DefId
[src]

impl Debug for DefId
[src]

Formats the value using the given formatter.

impl Encodable for DefId
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

impl Copy for DefId
[src]

impl Ord for DefId
[src]

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