Check out example codes for "rust empty vector". It will help you in understanding the concepts better.

Code Example 1

let mut vec = Vec::new();

Code Example 2

let a = vec![1, 2, 3];
assert_eq!(a.len(), 3);

Learn ReactJs, React Native from akashmittal.com