Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

push and item to vector rust

let mut vec = vec![10];
vec.push(100);
assert_eq!(vec[1], 100);
 
PREVIOUS NEXT
Tagged: #push #item #vector #rust
ADD COMMENT
Topic
Name
3+6 =