Function ignite::var::swap

source ·
pub fn swap<T>(x: T, y: T) -> (T, T)
Expand description

Swap two variables. But instead of using references, they will be consumed and new bindings will be produced.