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 | |
Tuple | includes unit |
Methods
impl<'a> Ty<'a>[src]
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>[src]
fn eq(&self, __arg_0: &Ty<'a>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Ty<'a>) -> bool
This method tests for !=.
impl<'a> Eq for Ty<'a>[src]
impl<'a> Clone for Ty<'a>[src]
fn clone(&self) -> Ty<'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