Enum syntex_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, Self, and literals

Variants

Self_
Ptr

&/Box/ Ty

Literal

mod::mod::Type<[lifetime], [Params...]>, including a plain type parameter, and things like i32

Tuple

includes unit

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

Trait Implementations

Derived Implementations

impl<'a> PartialEq for Ty<'a>

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

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

impl<'a> Eq for Ty<'a>

impl<'a> Clone for Ty<'a>

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

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