Function rustc_trans::middle::traits::select_inherent_implExperimental
[-]
[+]
[src]
pub fn select_inherent_impl(infcx: &InferCtxt<'a, 'tcx>, param_env: &ParameterEnvironment<'tcx>, typer: &Typer<'tcx>, cause: ObligationCause<'tcx>, impl_def_id: DefId, self_ty: &'tcx TyS<'tcx>) -> Result<Option<VtableImplData<'tcx, Obligation<'tcx>>>, SelectionError<'tcx>>
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).