Struct syntax::ast::PathUnstable [-] [+] [src]

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

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

span
global

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

segments

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

Trait Implementations

Derived Implementations

impl Debug for Path

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for Path

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for Path

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Path, Error>

impl Encodable for Path

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for Path

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Path

fn eq(&self, __arg_0: &Path) -> bool

fn ne(&self, __arg_0: &Path) -> bool

impl Clone for Path

fn clone(&self) -> Path

fn clone_from(&mut self, source: &Self)