Reading The Rust Book from cover to cover — Day 4 — Compound Data Types
2 min readApr 8, 2024
Rust has two primitive compound types — Tuples and Arrays.
The Tuple Type
A Tuple is a way of grouping multiple values of varying types into a single variable. Tuples have fixed lengths and once declared, tuples can not grow or shrink.