Enum rustc::middle::ty::styExperimental [-]  [+] [src]

pub enum sty {
    ty_bool,
    ty_char,
    ty_int(IntTy),
    ty_uint(UintTy),
    ty_float(FloatTy),
    ty_enum(DefId, Substs),
    ty_uniq(t),
    ty_str,
    ty_vec(t, Option<uint>),
    ty_ptr(mt),
    ty_rptr(Region, mt),
    ty_bare_fn(BareFnTy),
    ty_closure(Box<ClosureTy>),
    ty_trait(Box<TyTrait>),
    ty_struct(DefId, Substs),
    ty_unboxed_closure(DefId, Region, Substs),
    ty_tup(Vec<t>),
    ty_param(ParamTy),
    ty_open(t),
    ty_infer(InferTy),
    ty_err,
}

Variants

ty_bool
ty_char
ty_int
ty_uint
ty_float
ty_enum

Substs here, possibly against intuition, may contain ty_params. That is, even after substitution it is possible that there are type variables. This happens when the ty_enum corresponds to an enum definition and not a concrete use of it. To get the correct ty_enum from the tcx, use the NodeId from the ast::Ty and look it up in the ast_ty_to_ty_cache. This is probably true for ty_struct as well.`

ty_uniq
ty_str
ty_vec
ty_ptr
ty_rptr
ty_bare_fn
ty_closure
ty_trait
ty_struct
ty_unboxed_closure
ty_tup
ty_param
ty_open
ty_infer
ty_err

Trait Implementations

impl TypeFoldable for sty

fn fold_with<'tcx, F: TypeFolder<'tcx>>(&self, folder: &mut F) -> sty

Derived Implementations

impl Show for sty

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

impl<__S: Writer> Hash<__S> for sty

fn hash(&self, __arg_0: &mut __S)

impl Eq for sty

fn assert_receiver_is_total_eq(&self)

impl PartialEq for sty

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

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

impl Clone for sty

fn clone(&self) -> sty

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