a tuple struct is basically a named tuple. as a struct it has a name and as a tuple it doesn't have field names. tuple structs with only one field are also called newtypes (or said to be using the newtype pattern). they are useful for wrapping values to be able to differentiate them from other values with the same field type.
|
||
| 20 | 20 |
|
| 21 | 21 |
|
| 22 | 22 |
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 23 | 30 |
|
| 24 | 31 |
|
| 25 | 32 |
|
|
||
| 47 | 54 |
|
| 48 | 55 |
|
| 49 | 56 |
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 50 | 64 |
|