Function swap [src]

Efficiently swap a Managed 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: *Managed, other: *Managed) void

Parameters

self: *Managedother: *Managed

Source

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