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

Method contexts_mut

cranelift/codegen/src/ir/exception_table.rs:236–241  ·  view source on GitHub ↗

Get a mutable iterator over context values.

(&mut self)

Source from the content-addressed store, hash-verified

234
235 /// Get a mutable iterator over context values.
236 pub(crate) fn contexts_mut(&mut self) -> impl DoubleEndedIterator<Item = &mut Value> {
237 self.items.iter_mut().filter_map(|item| match item {
238 InternalExceptionTableItem::Context(ctx) => Some(ctx),
239 _ => None,
240 })
241 }
242
243 /// Clears all entries in this exception table, but leaves the function signature.
244 pub fn clear(&mut self) {

Callers 1

map_valuesMethod · 0.80

Calls 1

iter_mutMethod · 0.45

Tested by

no test coverage detected