Rust Structs
I’m building my Rust toolbox piece-by-piece. Today, I covered structs – custom data types to package together and label related values. By using structs, you can better convey the semantics of your syntax. In other words, when your code is structured, its purpose is more clear:
Using Structs to Structure Related Data - The Rust Programming Language