Struct syn::Path [] [src]

pub struct Path {
    pub global: bool,
    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

A ::foo path, is relative to the crate root rather than current module (like paths in an import).

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

Trait Implementations

impl ToTokens for Path
[src]

Write self to the given Tokens. Read more

impl Debug for Path
[src]

Formats the value using the given formatter.

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 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 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<T> From<T> for Path where T: Into<PathSegment>
[src]

Performs the conversion.