Skip to main content

One doc tagged with "compound"

View all tags

Fundamental Data Types: Compound Types

In our previous article, we explored Rust's scalar data types, which represent single values. Now, we'll look at compound types, which can group multiple values into one type. Rust has two primitive compound types: tuples and arrays.