vec from capacitty rust code example
Example 1: rust empty vector
let mut vec = Vec::new();
Example 2: get length of vector rust
let a = vec![1, 2, 3];
assert_eq!(a.len(), 3);
let mut vec = Vec::new();
let a = vec![1, 2, 3];
assert_eq!(a.len(), 3);