paralegal_flow::ana::graph_converter

Function get_parent

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

If did is a method of an impl of a trait, then return the DefId that refers to the method on the trait definition.