mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 19:28:29 +00:00

It looks like current usage of `swap` is aimed at achieving what `std::mem::replace` does but more concisely and idiomatically.
It looks like current usage of `swap` is aimed at achieving what `std::mem::replace` does but more concisely and idiomatically.