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