Function rustc_lint::middle::ty::trait_id_of_implUnstable
[-] [+]
[src]
pub fn trait_id_of_impl(tcx: &ctxt, def_id: DefId) -> Option<DefId>
Given the def_id of an impl, return the def_id of the trait it implements.
If it implements no trait, return None
.