Module coil-stdlib

collections::bitset

Part of coil-stdlib. spool projects get it automatically; with plain coil, pass --root ~/.coil/stdlib/src.

Import what you use (use path::* is not allowed):

use collections::bitset::{BitSet, word_mask};

Types#

NameDescription
BitSetA set of non-negative ints stored as bits.

Functions#

NameDescription
word_maskMask for bit b in 0..WORD_BITS (1 doubled b times).
bits_per_wordBits stored in one int word (sign bit unused).
↑ ↓ navigate ↵ open