pub fn toManaged(self: Mutable, allocator: Allocator) Managed
Asserts that the allocator owns the limbs memory. If this is not the case, use toConst().toManaged().
toConst().toManaged()
self: Mutable
allocator: Allocator
232 233 234 235 236 237 238 239 240 241
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, }; }
Asserts that the allocator owns the limbs memory. If this is not the case, use
toConst().toManaged().