resolve_trait_method

Function resolve_trait_method 

Source
fn resolve_trait_method(tcx: TyCtxt<'_>, def_id: DefId) -> DefId
Expand description

If def_id is a trait-method implementation, returns the corresponding trait method’s DefId; otherwise returns def_id unchanged.