Struct syntax::ast::Path [] [src]

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

A "Path" is essentially Rust's notion of a name.

It's represented as a sequence of identifiers, along with a bunch of supporting information.

E.g. std::cmp::PartialEq

Fields

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

The segments in the path: the things separated by ::. Global paths begin with keywords::CrateRoot.

Methods

impl Path
[src]

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

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

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

Trait Implementations

impl Clone for Path
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

impl Encodable for Path
[src]

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

deprecated in favor of rustc-serialize on crates.io

impl Decodable for Path
[src]

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

deprecated in favor of rustc-serialize on crates.io

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

Formats the value using the given formatter.

impl Display for Path
[src]

Formats the value using the given formatter. Read more

impl ToTokens for Path
[src]

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