From the course: Rust Programming: From Fundamentals to Advanced Concepts with AI-Assisted Development
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Summary of structured data - Rust Tutorial
From the course: Rust Programming: From Fundamentals to Advanced Concepts with AI-Assisted Development
Summary of structured data
- Using structured data in Rust and structure and giving an order to that data by using the struct type in Rust is definitely one of the things that I like a lot about the Rust programming language. Now, it doesn't only allow us to make that mapping, as you've seen in the previous lessons where we're assigning one key and one value. Similar to a Python dictionary, if we're talking about Python or a hashmap or an object in some of our languages like JavaScript, but also we saw how we can extend and we can provide extra functionality to those structs. That is a very powerful concept and something that doesn't necessarily exist in our programming languages, but it's definitely something that will allow you to extend, to provide all of those extra helper functions and help facilities that you want to incorporate into the struct. So not only the struct, not only the data, but also allowing all of these extra things that you can add on for that extra behavior, for transformation of data…