Function rustc_typeck::middle::ty::trait_id_of_implExperimental
[-]
[+]
[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
.