Types
Bits = ref object
- A bitset without a limit on the number of bits that can be set
BitsFilter = ref object
- Uses bitsets to determine whether another bit set 'matches' a set of conditions
Procs
proc anyIntersect(a, b: Bits): bool {....raises: [], tags: [], forbids: [].}
- Returns whether any of the bits overlap
proc hash(filter: BitsFilter): Hash {....raises: [], tags: [], forbids: [].}
proc matches(filter: BitsFilter; all: Bits; optional: Bits = newBits()): bool {. ...raises: [], tags: [], forbids: [].}
- Whether a target matches a filter
proc newFilter(mustContain, mustExclude: Bits): BitsFilter {....raises: [], tags: [], forbids: [].}
- Creates a new filter