Function swap [src]

Efficiently swap an Mutable with another. This swaps the limb pointers and a full copy is not performed. The address of the limbs field will not be the same after this function.

Prototype

pub fn swap(self: *Mutable, other: *Mutable) void

Parameters

self: *Mutableother: *Mutable

Source

pub fn swap(self: *Mutable, other: *Mutable) void { mem.swap(Mutable, self, other); }