DoxigAlpha

setFlag

Function parameters

Parameters

#
self:*Self

This is useful for saving memory when allocating an object that has many

Functions

#
TrailerFlags
This is useful for saving memory when allocating an object that has many

Source

Implementation

#
pub fn setFlag(self: *Self, comptime field: FieldEnum) void {
    const field_index = @intFromEnum(field);
    self.bits |= 1 << field_index;
}