Function core::mem::swap_simple

const: unstable · source ·
pub(crate) fn swap_simple<T>(x: &mut T, y: &mut T)
Expand description

Same as swap semantically, but always uses the simple implementation.

Used elsewhere in mem and ptr at the bottom layer of calls.