Struct rustc::middle::ty::TySUnstable [-]  [+] [src]

pub struct TyS<'tcx> {
    pub sty: sty<'tcx>,
    pub flags: TypeFlags,
    // some fields omitted
}

Fields

sty
flags

Methods

impl<'tcx> TyS<'tcx>

fn walk(&'tcx self) -> TypeWalker<'tcx>

Iterator that walks self and any types reachable from self, in depth-first order. Note that just walks the types that appear in self, it does not descend into the fields of structs or variants. For example:

int => { int }
Foo<Bar<int>> => { Foo<Bar<int>>, Bar<int>, int }
[int] => { [int], int }

fn walk_children(&'tcx self) -> TypeWalker<'tcx>

Iterator that walks types reachable from self, in depth-first order. Note that this is a shallow walk. For example:

int => { }
Foo<Bar<int>> => { Bar<int>, int }
[int] => { int }

Trait Implementations

impl<'tcx> PartialEq for TyS<'tcx>

fn eq(&self, other: &TyS<'tcx>) -> bool

fn ne(&self, other: &Rhs) -> bool

impl<'tcx> Eq for TyS<'tcx>

fn assert_receiver_is_total_eq(&self)

impl<'tcx, S: Writer + Hasher> Hash<S> for TyS<'tcx>

fn hash(&self, s: &mut S)

impl<'tcx> Repr<'tcx> for TyS<'tcx>

fn repr(&self, tcx: &ctxt<'tcx>) -> String

Derived Implementations

impl<'tcx> Show for TyS<'tcx>

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