pub fn subsets(k: u32) -> impl Iterator<Item = u64>
Iterate over all 2^k non-empty subsets of a k-bit mask.
2^k
k
k is the bit-width of the universe (e.g. 4 for a 4-bit mask).