3 ms·
There is no struct here. x will be an independent variable which will take the first value from the tuple, and y the second one.
by 21 9y ago
There is no struct here.
x will be an independent variable which will take the first value from the tuple, and y the second one.
- euyyn 9y agoHis point is that it makes sense to destructure in order for tuples, but what makes sense for structs is destructuring by field name.