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