Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

get length of vector rust

let a = vec![1, 2, 3];
assert_eq!(a.len(), 3);
Source by doc.rust-lang.org #
 
PREVIOUS NEXT
Tagged: #length #vector #rust
ADD COMMENT
Topic
Name
9+7 =