MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / next

Method next

cranelift/bitset/src/compound.rs:578–590  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

576
577 #[inline]
578 fn next(&mut self) -> Option<usize> {
579 loop {
580 if let Some(sub) = &mut self.sub {
581 if let Some(bit) = sub.next() {
582 return Some(CompoundBitSet::<T>::elem(self.word, bit));
583 } else {
584 self.word += 1;
585 }
586 }
587
588 self.sub = Some(self.bitset.elems.get(self.word)?.iter());
589 }
590 }
591}
592
593#[cfg(test)]

Callers 1

update_maxMethod · 0.45

Calls 2

iterMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected