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

pub struct Path {
    pub span: Span,
    pub segments: Vec<PathSegment>,
}

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

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

Methods

impl Path
[src]

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]

impl Decodable for Path
[src]

impl Hash for Path
[src]

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

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

impl<'a> PartialEq<&'a str> 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 Debug for Path
[src]

Formats the value using the given formatter. Read more

impl Display for Path
[src]

Formats the value using the given formatter. Read more

impl ToTokens for Path
[src]

Important traits for Vec<u8>

Auto Trait Implementations

impl !Send for Path

impl !Sync for Path