Function clippy::utils::implements_trait  
            
                [−]
            
        [src]
pub fn implements_trait<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: Ty<'tcx>, trait_id: DefId, ty_params: Option<Vec<Ty<'tcx>>>) -> bool
Check whether a type implements a trait.
See also get_trait_def_id.