blob: 6f8945c84476ff3130785a9d9de3ecdfc049ce3b (
plain)
1
2
3
4
5
6
7
8
|
[[Rust]]
Destructuring is binding each value in a compound type to a name. It is called destructuring because we break the compound element into individual elements.
```rust
let tup = (1, 2, 3);
let (a, b, c) = tup;
```
|