add element to vec rust code example Example: add element to vec rust let mut vec = Vec::new(); vec.push(1);