Struct 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,
}Unstable
A path, e.g. ::std::option::Option::<i32> (global). Has support
for type parameters and a lifetime.
Fields
path | Unstable |
lifetime | Unstable |
params | Unstable |
global | Unstable |
Methods
impl<'a> Path<'a>
fn new<'r>(path: Vec<&'r str>) -> Path<'r>
Unstable
fn new_local<'r>(path: &'r str) -> Path<'r>
Unstable
fn new_<'r>(path: Vec<&'r str>, lifetime: Option<&'r str>, params: Vec<Box<Ty<'r>>>, global: bool) -> Path<'r>
Unstable
fn to_ty(&self, cx: &ExtCtxt, span: Span, self_ty: Ident, self_generics: &Generics) -> P<Ty>
Unstable
fn to_path(&self, cx: &ExtCtxt, span: Span, self_ty: Ident, self_generics: &Generics) -> Path
Unstable