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

Method size_hint

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

Source from the content-addressed store, hash-verified

288 }
289
290 fn size_hint(&self) -> (usize, Option<usize>) {
291 let mut sum = 0;
292 for i in self.idx_f..self.idx_r + 1 {
293 sum += self.data[i].0.count_ones() as usize;
294 }
295 (sum, Some(sum))
296 }
297}
298
299impl<const N: usize> DoubleEndedIterator for ArrayIter<N> {

Callers

nothing calls this directly

Calls 1

count_onesMethod · 0.80

Tested by

no test coverage detected