Struct rustc_trans::middle::typeck::infer::type_variable::TypeVariableTableExperimental
[-]
[+]
[src]
pub struct TypeVariableTable<'tcx> {
// some fields omitted
}Methods
impl<'tcx> TypeVariableTable<'tcx>
fn new() -> TypeVariableTable<'tcx>
fn var_diverges(&'a self, vid: TyVid) -> bool
fn relate_vars(&mut self, a: TyVid, dir: RelationDir, b: TyVid)
Records that a <: b, a :> b, or a == b, depending on dir.
Precondition: neither a nor b are known.
fn instantiate_and_push(&mut self, vid: TyVid, ty: &'tcx TyS<'tcx>, stack: &mut Vec<(&'tcx TyS<'tcx>, RelationDir, TyVid)>)
Instantiates vid with the type ty and then pushes an
entry onto stack for each of the relations of vid to
other variables. The relations will have the form (ty,
dir, vid1) where vid1 is some other variable id.