Summary

Completed

In this module, we explored different loop expressions available in Rust, and discovered how to work with hash maps. Data is stored in a hash map as key, value pairs. Hash maps are growable.

The loop expression repeats actions until you manually stop the process. You can loop with the while expression to repeat actions as long as a condition remains true. The for expression is used to iterate through a data collection.

In the exercise, you expanded on a car program to loop through repeated actions to fulfill all orders. You implemented a hash map to track the orders.

In the next module in this Learning Path, you'll dig deeper into how errors and failures are handled in Rust code.

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

Rust: Concepts