MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / count

Method count

src/entity/set.rs:155–160  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

153 #[inline]
154 #[must_use]
155 pub fn count(&self) -> usize {
156 self.storage
157 .iter()
158 .map(|word| word.count_ones() as usize)
159 .sum()
160 }
161
162 /// Returns the next entity starting from `from` that is present in the set.
163 #[inline]

Callers 3

propagate_to_predsMethod · 0.45
process_editMethod · 0.45
superclassesFunction · 0.45

Calls 3

mapMethod · 0.80
count_onesMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected