Function clone [src]
Creates a duplicate of this bit set, using the new allocator.
Prototype
pub fn clone(self: *const Self, new_allocator: Allocator) !Self
Parameters
self: *const Self
new_allocator: Allocator
Source
pub fn clone(self: *const Self, new_allocator: Allocator) !Self {
return Self{
.unmanaged = try self.unmanaged.clone(new_allocator),
.allocator = new_allocator,
};
}