mirror of https://github.com/rust-lang/rfcs.git
Give examples in guide-level explanation
This commit is contained in:
parent
9d5cb89e7a
commit
6d4afd56b4
|
@ -32,7 +32,13 @@ feature is
|
|||
[guide-level-explanation]: #guide-level-explanation
|
||||
|
||||
You may destructure a value when making an assignment, just as when you declare variables. See the
|
||||
[Summary](#Summary) for examples.
|
||||
[Summary](#Summary) for examples. The following structures may be destructured:
|
||||
|
||||
- Tuples.
|
||||
- Slices.
|
||||
- (Tuple) structs.
|
||||
|
||||
You may use `_` and `..` as in a normal declaration pattern to ignore certain values.
|
||||
|
||||
# Reference-level explanation
|
||||
[reference-level-explanation]: #reference-level-explanation
|
||||
|
|
Loading…
Reference in New Issue