Function toggle [src]
Flips a specific bit in the bit set
Prototype
pub fn toggle(self: *Self, index: usize) void Parameters
self: *Selfindex: usize Source
pub fn toggle(self: *Self, index: usize) void {
assert(index < self.bit_length);
self.masks[maskIndex(index)] ^= maskBit(index);
}