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

Method iter_mut

crates/core/src/slab.rs:472–481  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

470 /// Iteration order is undefined.
471 #[inline]
472 pub fn iter_mut(&mut self) -> impl Iterator<Item = (Id, &mut T)> + '_ {
473 assert!(self.entries.len() <= Self::MAX_CAPACITY);
474 self.entries
475 .iter_mut()
476 .enumerate()
477 .filter_map(|(i, e)| match e {
478 Entry::Occupied(x) => Some((Id(EntryIndex::new(i)), x)),
479 Entry::Free { .. } => None,
480 })
481 }
482
483 /// Iterate over and remove all entries in this slab.
484 ///

Callers 15

vsubf32x4Method · 0.45
vmulf32x4Method · 0.45
vtrunc32x4Method · 0.45
vtrunc64x2Method · 0.45
vfloor32x4Method · 0.45
vfloor64x2Method · 0.45
vceil32x4Method · 0.45
vceil64x2Method · 0.45
vnearest32x4Method · 0.45
vnearest64x2Method · 0.45
vsqrt32x4Method · 0.45
vsqrt64x2Method · 0.45

Calls 2

IdClass · 0.70
newFunction · 0.50

Tested by 2

btree_mapFunction · 0.36