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