array
A fixed number of values of one type, side by side.
An array [T; N] holds exactly N values of type T contiguously; its length is part of its type.
Loading interactive…
Examples
[0; 5]is five zeros, andtemps.len()on[18, 21, 19, 24, 22]is 5.[i32; 4]takes 16 bytes: four 4-byte items side by side.