Function core::ptr::swapUnstable[src]

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

Swap the values at two mutable locations of the same type, without deinitialising either. They may overlap.