DoxigAlpha

Parsed

Fields of this type

Fields

#
arena:*ArenaAllocator
value:T

Functions in this namespace

Functions

#

Source

Implementation

#
pub fn Parsed(comptime T: type) type {
    return struct {
        arena: *ArenaAllocator,
        value: T,

        pub fn deinit(self: @This()) void {
            const allocator = self.arena.child_allocator;
            self.arena.deinit();
            allocator.destroy(self.arena);
        }
    };
}