Trait rustc_typeck::middle::infer::unify::InferCtxtMethodsForSimplyUnifiableTypesUnstable [-]  [+] [src]

pub trait InferCtxtMethodsForSimplyUnifiableTypes<'tcx, K, V> where K: UnifyKey, <K as UnifyKey>::Value == Option<V>, V: SimplyUnifiable<'tcx>, Option<V>: UnifyValue {
    fn simple_vars(&self, a_is_expected: bool, a_id: K, b_id: K) -> Result<(), type_err<'tcx>>;
    fn simple_var_t(&self, a_is_expected: bool, a_id: K, b: V) -> Result<(), type_err<'tcx>>;
    fn probe_var(&self, a_id: K) -> Option<&'tcx TyS<'tcx>>;
}

Required Methods

fn simple_vars(&self, a_is_expected: bool, a_id: K, b_id: K) -> Result<(), type_err<'tcx>>

fn simple_var_t(&self, a_is_expected: bool, a_id: K, b: V) -> Result<(), type_err<'tcx>>

fn probe_var(&self, a_id: K) -> Option<&'tcx TyS<'tcx>>

Implementors