pub fn is_trait_method(
cx: &LateContext<'_>,
expr: &Expr<'_>,
diag_item: Symbol,
) -> boolExpand description
Checks if the method call given in expr belongs to the given trait.
pub fn is_trait_method(
cx: &LateContext<'_>,
expr: &Expr<'_>,
diag_item: Symbol,
) -> boolChecks if the method call given in expr belongs to the given trait.