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

Method contexts

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

Get an iterator over context values.

(&self)

Source from the content-addressed store, hash-verified

226
227 /// Get an iterator over context values.
228 pub(crate) fn contexts(&self) -> impl DoubleEndedIterator<Item = Value> {
229 self.items.iter().filter_map(|item| match item {
230 InternalExceptionTableItem::Context(ctx) => Some(*ctx),
231 _ => None,
232 })
233 }
234
235 /// Get a mutable iterator over context values.
236 pub(crate) fn contexts_mut(&mut self) -> impl DoubleEndedIterator<Item = &mut Value> {

Callers 1

inst_valuesMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected