Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 40
What does mem::swap(&mut a, &mut b) require and guarantee?
A
It only works for integers
B
a and b must be Copy
C
Two distinct mutable references; exchanges values without running destructors or cloning
D
It allocates temporary heap memory