Check out example codes for "how to make an array in rust". It will help you in understanding the concepts better.

Code Example 1

//Array declaration. Array sizes must be known at compile time
let my_array: [i32; 5] = [1, 2, 3, 4, 5];

//If the size of the array is not known at compile time. Use a slice or a vector

Learn ReactJs, React Native from akashmittal.com