Summary
In this module, we reviewed how Rust supports compound data types and test conditions. Data collections can be implemented by using arrays and vectors. You can check data values or test conditions by using if/else statements and boolean expressions.
In the exercise, you wrote a group of functions to work together to build cars. You practiced working with data stored in several types, including arrays, tuples, enums, and structs. We used the Rust playground to modify the code, compile the program, and run the executable.
In the next module in this Learning Path, we explore how to iterate through data by using loops.
Learn more
Visit the following links to learn more about some of the items we explored in this module:
Rust reference documentation
Rust: Data types
- Work with arrays
- Work with boolean values
- Work with characters
- Work with decimal numbers and floating point types
- Work with enums
- Work with hash maps
- Work with integer types
- Work with strings
- Work with structs
- Work with tuples
- Work with vectors