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
The tuple struct is just explained very shortly in textual form without an example accessing the elements (ch05-01-defining-structs). So when I first saw self.0 (in ch15-02-deref) I was very confused.
Plus I couldn't find anything helpful by searching "self.0" in the book. There should be a small example using tuple structs with method, probably in ch05-03-method-syntax.