Function clippy_lints::utils::implements_trait [] [src]

pub fn implements_trait<'a, 'tcx>(
    cx: &LateContext<'a, 'tcx>,
    ty: Ty<'tcx>,
    trait_id: DefId,
    ty_params: &[Ty<'tcx>]
) -> bool

Check whether a type implements a trait. See also get_trait_def_id.