We have not yet seen all the composite types provided by Rust, and in
particular we have not yet seen the Vec type; however, here’s a table
that summarizes the most commonly used composite types in Rust:
Table 1:Properties and indexing of Rust’s basic composite types.
Type | Fixed size? | Homogeneous? | Read n-th | Write n-th |
|---|---|---|---|---|
Tuple | yes | no |
|
|
Array | yes | yes |
|
|
Vector | no | yes |
|
|