pub fn is_trait_method(
    cx: &LateContext<'_>,
    expr: &Expr<'_>,
    diag_item: Symbol
) -> bool
Expand description

Checks if the method call given in expr belongs to the given trait.