Function lrs::mem::swap

Swaps two objects.

Syntax

fn swap<T>(one: &mut T, two: &mut T) -> ()

Arguments

NameDescription
one

Object one.

two

Object two.