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

Method iter

crates/core/src/slab.rs:455–464  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

453 /// Iteration order is undefined.
454 #[inline]
455 pub fn iter(&self) -> impl Iterator<Item = (Id, &T)> + '_ {
456 assert!(self.entries.len() <= Self::MAX_CAPACITY);
457 self.entries
458 .iter()
459 .enumerate()
460 .filter_map(|(i, e)| match e {
461 Entry::Occupied(x) => Some((Id(EntryIndex::new(i)), x)),
462 Entry::Free { .. } => None,
463 })
464 }
465
466 /// Mutably iterate over all values currently allocated within this `Slab`.
467 ///

Callers 15

func_wrap_host_buf_apiFunction · 0.45
take_and_return_list_u8Function · 0.45
bench_host_to_wasmFunction · 0.45
compileFunction · 0.45
bench_sequentialFunction · 0.45
bench_parallelFunction · 0.45
bench_deserialize_moduleFunction · 0.45
fmtMethod · 0.45
vbitmask8x16Method · 0.45
vbitmask16x8Method · 0.45
vbitmask32x4Method · 0.45

Calls 2

IdClass · 0.70
newFunction · 0.50

Tested by 15

call_wrapped_funcFunction · 0.36
maps_complex_typesFunction · 0.36
test_many_parametersFunction · 0.36
fancy_listFunction · 0.36
test_try_extendFunction · 0.36
test_round_trip_manyFunction · 0.36