Struct syntex_syntax::ast::Path [] [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

impl Debug for Path

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

impl Display for Path

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

impl ToTokens for Path

fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>

Derived Implementations

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, __D::Error>

impl Encodable for Path

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

impl Eq for Path

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)