Struct syntex_syntax::ext::deriving::generic::ty::Path [] [src]

pub struct Path<'a> {
    pub path: Vec<&'a str>,
    pub lifetime: Option<&'a str>,
    pub params: Vec<Box<Ty<'a>>>,
    pub global: bool,
}

A path, e.g. ::std::option::Option::<i32> (global). Has support for type parameters and a lifetime.

Fields

path
lifetime
params
global

Methods

impl<'a> Path<'a>

fn new<'r>(path: Vec<&'r str>) -> Path<'r>

fn new_local<'r>(path: &'r str) -> Path<'r>

fn new_<'r>(path: Vec<&'r str>, lifetime: Option<&'r str>, params: Vec<Box<Ty<'r>>>, global: bool) -> Path<'r>

fn to_ty(&self, cx: &ExtCtxt, span: Span, self_ty: Ident, self_generics: &Generics) -> P<Ty>

fn to_path(&self, cx: &ExtCtxt, span: Span, self_ty: Ident, self_generics: &Generics) -> Path

Trait Implementations

Derived Implementations

impl<'a> PartialEq for Path<'a>

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

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

impl<'a> Eq for Path<'a>

impl<'a> Clone for Path<'a>

fn clone(&self) -> Path<'a>

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