Function toMutable [src]
Asserts limbs is big enough to store the value.
Prototype
pub fn toMutable(self: Const, limbs: []Limb) Mutable
Parameters
self: Const
limbs: []Limb
Source
pub fn toMutable(self: Const, limbs: []Limb) Mutable {
@memcpy(limbs[0..self.limbs.len], self.limbs[0..self.limbs.len]);
return .{
.limbs = limbs,
.positive = self.positive,
.len = self.limbs.len,
};
}