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