pub fn clone(self: *const Self, new_allocator: Allocator) !Self
Creates a duplicate of this bit set, using the new allocator.
self: *const Self
new_allocator: Allocator
1132 1133 1134 1135 1136 1137
pub fn clone(self: *const Self, new_allocator: Allocator) !Self { return Self{ .unmanaged = try self.unmanaged.clone(new_allocator), .allocator = new_allocator, }; }
Creates a duplicate of this bit set, using the new allocator.