Enum syntax::ast::PrimTyUnstable [-] [+] [src]

pub enum PrimTy {
    TyInt(IntTy),
    TyUint(UintTy),
    TyFloat(FloatTy),
    TyStr,
    TyBool,
    TyChar,
}

Not represented directly in the AST, referred to by name through a ty_path.

Variants

TyInt
TyUint
TyFloat
TyStr
TyBool
TyChar

Trait Implementations

Derived Implementations

impl Copy for PrimTy

impl Debug for PrimTy

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for PrimTy

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for PrimTy

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<PrimTy, Error>

impl Encodable for PrimTy

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for PrimTy

fn assert_receiver_is_total_eq(&self)

impl PartialEq for PrimTy

fn eq(&self, __arg_0: &PrimTy) -> bool

fn ne(&self, __arg_0: &PrimTy) -> bool

impl Clone for PrimTy

fn clone(&self) -> PrimTy

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