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

Method count

src/entity/small_set.rs:149–151  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

147 /// Returns the number of elements in the set.
148 #[inline]
149 pub fn count(&self) -> usize {
150 self.storage.iter().map(|word| word.count_ones()).sum()
151 }
152}
153
154impl<T, W, const N: usize> IntoIterator for SmallEntitySet<T, W, N>

Callers

nothing calls this directly

Calls 3

mapMethod · 0.80
count_onesMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected