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.
pub fn is_trait_method(
cx: &LateContext<'_>,
expr: &Expr<'_>,
diag_item: Symbol,
) -> bool
Checks if the method call given in expr
belongs to the given trait.