Use loops to iterate through data in Rust

Beginner
Student
Developer
Visual Studio Code
Azure

Explore how to use hash maps in Rust. Discover how to use loop expressions to iterate through data.

Learning objectives

In this module, you will:

  • Discover the hash map data type in Rust, and how to access keys and values
  • Explore how to use loop expressions to iterate through data in a Rust program
  • Create, compile, and run a Rust program to iterate on hash map data by using a loop

Prerequisites

  • Have your Rust development environment already set up.
  • Know how to create, edit, and run Rust code by using Cargo or by working in the Rust playground.