pub fn set(self: *Managed, value: anytype) Allocator.Error!void self: *Managedvalue3013
3014
3015
3016
3017
3018 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);
}
Sets an Managed to value. Value must be an primitive integer type.