Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 10
Why is Box<[T]> sometimes preferred over Vec<T> for long-lived, fixed-size data?
A
It can grow
B
It's 16 bytes instead of 24 (no capacity) and documents the size won't change; into_boxed_slice drops excess capacity
C
It's faster to index
D
It's stored on the stack