Until now we only used simple data, but to do real programming, more composite and structured data values are needed. Amongst them are flexible arrays and tuples, enums, and structs to represent more object-like behavior, like in classical object-oriented languages. Options are another important type used to ensure that cases where no value is returned are accounted for. Then we look at pattern matching, another typical functional construct in Rust. But we start by looking more carefully at strings.
We will cover the following topics:
- Strings
- Arrays, vectors and slices
- Tuples
- Structs
- Enums
- Getting input from the console
- Matching patterns
- Program arguments