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>>),
}

A type. Supports pointers (except for *), Self, and literals

Variants

Self
Ptr
Literal
Tuple

Methods

impl<'a> Ty<'a>

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