Function clippy_utils::match_trait_method
source · pub fn match_trait_method(
cx: &LateContext<'_>,
expr: &Expr<'_>,
path: &[&str]
) -> bool
Expand description
Checks if the method call given in expr
belongs to the given trait.
This is a deprecated function, consider using is_trait_method
.