Practice
Learn
← Quit
0 / 0 correct
Rust
Easy
1 of 117
What is the difference between Vec::len() and Vec::capacity()?
A
They're always equal
B
capacity is the number of elements; len the bytes
C
len counts bytes
D
len is the number of elements; capacity is how many fit before reallocating