pub fn is_trait_method(tcx: TyCtxt<'_>, def_id: DefId) -> bool
Returns true if the function identified by def_id is defined as part of a trait.
def_id