Function rustc::metadata::csearch::get_trait_of_method[src]
pub fn get_trait_of_method(cstore: &CStore, def_id: DefId, tcx: &ctxt) -> Option<DefId>
If the given def ID describes a method belonging to a trait (either a
default method or an implementation of a trait method), returns the ID of
the trait that the method belongs to. Otherwise, returns None.