Loading...
CONCEPT

Rust: Arrays

Learn about Arrays, one of Rust's compound data types.

avatar
rohitpaulk
Concept Author
3 min reading time

Array is a Rust data type that is used to store multiple values of the same type.

Arrays are defined using square brackets, for example:

// An array of 3 booleans
let checks: [bool; 3] = [true, false, true];