DoxigAlpha

has

Function parameters

Parameters

#

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 has(self: Self, comptime field: FieldEnum) bool {
    const field_index = @intFromEnum(field);
    return (self.bits & (1 << field_index)) != 0;
}