Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 639
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
It's impossible without unsafe
C
clone() the option
D
*opt = None; then read it