Struct rustc_typeck::hir::Path [] [src]

pub struct Path {
    pub span: Span,
    pub def: Def,
    pub segments: P<[PathSegment]>,
}
🔬 This is a nightly-only experimental API. (rustc_private)

A "Path" is essentially Rust's notion of a name; for instance: std::cmp::PartialEq . It's represented as a sequence of identifiers, along with a bunch of supporting information.

Fields

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

The definition that the path resolved to.

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

The segments in the path: the things separated by ::.

Methods

impl Path
[src]

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

Trait Implementations

impl Decodable for Path
[src]

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

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

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

Feeds a slice of this type into the state provided.

impl Clone for Path
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Path
[src]

impl Debug for Path
[src]

Formats the value using the given formatter.

impl Encodable for Path
[src]

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