MCPcopy Create free account
hub / github.com/Lymia/enumset / count_ones

Method count_ones

enumset/src/repr/array.rs:75–77  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

73 }
74
75 fn count_ones(&self) -> u32 {
76 self.0.iter().map(|x| x.count_ones()).sum()
77 }
78
79 fn and_not(&self, other: Self) -> Self {
80 let mut new = Self([0; N]);

Callers 4

map_masksMethod · 0.80
valid_lenMethod · 0.80
size_hintMethod · 0.80
size_hintMethod · 0.80

Calls 2

sumMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected