Function rustc::middle::ty::bounds_for_trait_refExperimental [-]  [+] [src]

pub fn bounds_for_trait_ref(tcx: &ctxt, trait_ref: &TraitRef) -> ParamBounds

Given a reference to a trait, returns the bounds declared on the trait, with appropriate substitutions applied.