Function rustc_trans::middle::traits::select_inherent_implExperimental [-]  [+] [src]

pub fn select_inherent_impl(infcx: &InferCtxt<'a, 'tcx>, param_env: &ParameterEnvironment, typer: &Typer<'tcx>, cause: ObligationCause, impl_def_id: DefId, self_ty: t) -> Result<Option<VtableImplData<Obligation>>, SelectionError>

Matches the self type of the inherent impl impl_def_id against self_ty and returns the resulting resolution. This routine may modify the surrounding type context (for example, it may unify variables).