Function clippy_utils::method_chain_args
source · [−]Expand description
Matches an Expr against a chain of methods, and return the matched Exprs.
For example, if expr represents the .baz() in foo.bar().baz(),
method_chain_args(expr, &["bar", "baz"]) will return a Vec
containing the Exprs for
.bar() and .baz()