Trait chalk_ir::UnificationDatabase
source · pub trait UnificationDatabase<I>{
// Required methods
fn fn_def_variance(&self, fn_def_id: FnDefId<I>) -> Variances<I>;
fn adt_variance(&self, adt_id: AdtId<I>) -> Variances<I>;
}
Expand description
Logic to decide the Variance for a given subst
Required Methods§
sourcefn fn_def_variance(&self, fn_def_id: FnDefId<I>) -> Variances<I>
fn fn_def_variance(&self, fn_def_id: FnDefId<I>) -> Variances<I>
Gets the variances for the substitution of a fn def
sourcefn adt_variance(&self, adt_id: AdtId<I>) -> Variances<I>
fn adt_variance(&self, adt_id: AdtId<I>) -> Variances<I>
Gets the variances for the substitution of a adt