Function set [src]

Sets an Managed to value. Value must be an primitive integer type.

Prototype

pub fn set(self: *Managed, value: anytype) Allocator.Error!void

Parameters

self: *Managed

Source

pub fn set(self: *Managed, value: anytype) Allocator.Error!void { try self.ensureCapacity(calcLimbLen(value)); var m = self.toMutable(); m.set(value); self.setMetadata(m.positive, m.len); }