Loading RustViz Engine...
Swap two mutable variables using idiomatic Rust tuple deconstruction.
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
pub fn swap_pair<T>(a: &mut T, b: &mut T) {
std::mem::swap(a, b);
}