Function count [src]

Prototype

pub fn count(set: Set) std.math.IntFittingRange(0, needed_bit_count)

Parameters

set: Set

Source

pub fn count(set: Set) std.math.IntFittingRange(0, needed_bit_count) { var sum: usize = 0; for (set.ints) |x| sum += @popCount(x); return @intCast(sum); }