Function rustc::middle::traits::obligations_for_genericsExperimental [-]  [+] [src]

pub fn obligations_for_generics(tcx: &ctxt, cause: ObligationCause, generic_bounds: &GenericBounds, type_substs: &VecPerParamSpace<t>) -> VecPerParamSpace<Obligation>

Given generic bounds from an impl like:

impl ...

along with the bindings for the types A and B (e.g., <A=A0, B=B0>), yields a result like

[[Foo for A0, Bar for B0, Qux for B0], [], []]

Expects that generic_bounds have already been fully substituted, late-bound regions liberated and so forth, so that they are in the same namespace as type_substs.