DoxigAlpha

deinit

Function parameters

Parameters

#
self:*Self

This is a stack data structure where pointers to indexes have the same lifetime as the data structure

Functions

#
SegmentedList
This is a stack data structure where pointers to indexes have the same lifetime as the data structure

Source

Implementation

#
pub fn deinit(self: *Self, allocator: Allocator) void {
    self.freeShelves(allocator, @as(ShelfIndex, @intCast(self.dynamic_segments.len)), 0);
    allocator.free(self.dynamic_segments);
    self.* = undefined;
}