You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What this example is showing is how one field of a struct can be
captured while another is not (when using rest patterns). However,
the example above demonstrates this with tuples, and there are no
interesting differences between tuple fields and struct fields in this
case.
Partial captures of arrays and slices are not supported; the entire slice or array is always captured even if used with wildcard pattern matching, indexing, or sub-slicing.
0 commit comments