1 2 3 4 5 6 7 8
/// Swap two variables. But instead of using references, they will be consumed /// and new bindings will be produced. #[inline] pub fn swap<T>(x: T, y: T) -> (T, T) { let (y, x) = (x, y); (y, x) }