pub fn get_trait_def_id(tcx: TyCtxt<'_>, path: &[&str]) -> Option<DefId>
Convenience function to get the DefId of a trait by path. It could be a trait or trait alias.
DefId
This function is expensive and should be used sparingly.