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>
[src]

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>
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl<'a> Eq for Path<'a>
[src]

impl<'a> Clone for Path<'a>
[src]

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

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more