Practice
Learn
← Quit
0 / 0 correct
Rust
Medium
1 of 117
What does Vec::drain(range) do?
A
Clears the capacity
B
Copies the range
C
Sorts the range
D
Removes the range from the vector and returns an iterator over the removed elements