pub fn cloneWithDifferentAllocator(other: Managed, allocator: Allocator) !Managed
other: Managed
allocator: Allocator
2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935
pub fn cloneWithDifferentAllocator(other: Managed, allocator: Allocator) !Managed { return .{ .allocator = allocator, .metadata = other.metadata, .limbs = block: { const limbs = try allocator.alloc(Limb, other.len()); @memcpy(limbs, other.limbs[0..other.len()]); break :block limbs; }, }; }