Enum syntax::ext::deriving::generic::ty::Ty
[−]
[src]
pub enum Ty<'a> {
Self_,
Ptr(Box<Ty<'a>>, PtrTy<'a>),
Literal(Path<'a>),
Tuple(Vec<Ty<'a>>),
}Unstable
A type. Supports pointers, Self, and literals
Variants
Self_ | Unstable |
Ptr | Unstable &/Box/ Ty |
Literal | Unstable mod::mod::Type<[lifetime], [Params...]>, including a plain type
parameter, and things like |
Tuple | Unstable includes unit |
Methods
impl<'a> Ty<'a>
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