Function clippy_utils::get_trait_def_id
source · pub fn get_trait_def_id(cx: &LateContext<'_>, path: &[&str]) -> Option<DefId>
Expand description
Convenience function to get the DefId
of a trait by path.
It could be a trait or trait alias.