pub fn toggle(self: *Self, index: usize) void
Flips a specific bit in the bit set
self: *Self
index: usize
498 499 500 501 502
pub fn toggle(self: *Self, index: usize) void { assert(index < bit_length); if (num_masks == 0) return; // doesn't compile in this case self.masks[maskIndex(index)] ^= maskBit(index); }
Flips a specific bit in the bit set