Function std::util::swap

pub fn swap<T>(x: &mut T, y: &mut T)

Swap the values at two mutable locations of the same type, without deinitialising or copying either one.