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