DEV Community

Discussion on: Operator Overloading in Rust

Collapse
 
bretthancox profile image
bretthancox

You access the input and self Strings by index. Is that because your MyString struct is a tuple?

Collapse
 
anilkhandei profile image
Anil Kumar Khandei

Yup a tuple struct.