On this page
_
expressions
Syntax
UnderscoreExpression :
_
Underscore expressions, denoted with the symbol _
, are used to signify a placeholder in a destructuring assignment. They may only appear in the left-hand side of an assignment.
An example of an _
expression:
#![allow(unused)]
fn main() {
let p = (1, 2);
let mut a = 0;
(_, a) = p;
}
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/reference/expressions/underscore-expr.html