Function rustc::middle::ty::impl_of_methodUnstable
[-] [+]
[src]
pub fn impl_of_method(tcx: &ctxt, def_id: DefId) -> Option<DefId>
If the given def ID describes a method belonging to an impl, return the
ID of the impl that the method belongs to. Otherwise, return None
.