3 ms·
Underscore acts as a wildcard, denoting that you don't want to bind a variable. Quoting the Rust reference[0]: > Underscore expressions, denoted with the symbo
by dwattttt 11mo ago
Underscore acts as a wildcard, denoting that you don't want to bind a variable. Quoting the Rust reference[0]:
> Underscore expressions, denoted with the symbol _, are used to signify a placeholder in a destructuring assignment.
[0]: https://doc.rust-lang.org/reference/expressions/underscore-expr.html https://doc.rust-lang.org/reference/expressions/underscore-e...