Understand common concepts in Rust

Beginner
Student
Developer
Visual Studio Code
Azure

Learn the basics of Rust. Explore variables, data types, structs, enums, functions, indexing, hash maps, and flow control.

Learning objectives

In this module, you will:

  • Learn about the basic structure of a Rust program.
  • Use the let statement to assign values to variables.
  • Learn how to comment your code to make it more descriptive.
  • Discover the basic data types that exist in the Rust standard library.
  • Write your own functions.
  • Use collections to store multiple values in a single structure.
  • Learn how to use conditional statements and loops in your code.

Prerequisites

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