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

Method iter_mut

crates/wasmtime/src/runtime/component/resource_table.rs:409–414  ·  view source on GitHub ↗

Iterate over all the entries in this table.

(&mut self)

Source from the content-addressed store, hash-verified

407
408 /// Iterate over all the entries in this table.
409 pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut (dyn Any + Send)> {
410 self.entries.iter_mut().filter_map(|entry| match entry {
411 Entry::Occupied { entry } => Some(&mut *entry.entry),
412 Entry::Free { .. } => None,
413 })
414 }
415}
416
417impl Default for ResourceTable {

Callers 15

try_fill_bytesMethod · 0.45
preloadFunction · 0.45
call_impl_do_callMethod · 0.45
_instantiate_preMethod · 0.45
default_valueMethod · 0.45
dropMethod · 0.45
lower_argsMethod · 0.45
from_partsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected