Function rustc::middle::traits::search_trait_and_supertraits_from_boundExperimental
[-]
[+]
[src]
pub fn search_trait_and_supertraits_from_bound<'tcx>(tcx: &ctxt<'tcx>, caller_bound: Rc<TraitRef<'tcx>>, test: |DefId| -> bool) -> Option<VtableParamData<'tcx>>
Starting from a caller obligation caller_bound (which has
coordinates space/i in the list of caller obligations),
search through the trait and supertraits to find one where
test(d) is true, where d is the def-id of the
trait/supertrait. If any is found, return Some(p) where p
is the path to that trait/supertrait. Else None.