Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 447
How do you move a value out of a `&mut Option<T>` field, leaving None behind?
A
Option::take(), which is mem::replace(&mut opt, None)
B
*opt = None; then read it
C
It's impossible without unsafe
D
clone() the option