Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_masks
Method · 0.80
valid_len
Method · 0.80
size_hint
Method · 0.80
size_hint
Method · 0.80
Calls
2
sum
Method · 0.80
iter
Method · 0.45
Tested by
no test coverage detected