Struct syntax::ast::PathExperimental [-]  [+] [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 Show for Path

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

impl<__S: Writer> Hash<__S> for Path

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for Path

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for Path

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

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)