Index
Prendi appunti da https://doc.rust-lang.org/book/ch03-02-data-types.html
We use data types in Rust to determine the type of data associated with the variables. For example,
let alphabet: char;
Here, char
is the data type that specifies that the alphabet variable can only store the character data.
Scalar types
A scalar type represents a single value. Rust has four primary scalar types:
Compound types
Compound types can group multiple values into one type. Rust has two primitive compound types: