Function opt_trait_item

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

If the provided DefId is a method in a trait impl, return the DefId of the method prototype.