fn clearAndFree(self: *Self, allocator: Allocator) void
Invalidates all element pointers.
self: *Self,
allocator: Allocator,