Function toManaged [src]
Asserts that the allocator owns the limbs memory. If this is not the case,
use toConst().toManaged().
Prototype
pub fn toManaged(self: Mutable, allocator: Allocator) Managed
Parameters
self: Mutable
allocator: Allocator
Source
pub fn toManaged(self: Mutable, allocator: Allocator) Managed {
return .{
.allocator = allocator,
.limbs = self.limbs,
.metadata = if (self.positive)
self.len & ~Managed.sign_bit
else
self.len | Managed.sign_bit,
};
}