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

Method map_value

cranelift/codegen/src/ir/instructions.rs:256–261  ·  view source on GitHub ↗

Update the contained value, if any.

(&self, mut f: F)

Source from the content-addressed store, hash-verified

254
255 /// Update the contained value, if any.
256 pub fn map_value<F: FnMut(Value) -> Value>(&self, mut f: F) -> Self {
257 match *self {
258 BlockArg::Value(v) => BlockArg::Value(f(v)),
259 other => other,
260 }
261 }
262}
263
264impl Display for BlockArg {

Callers 2

newMethod · 0.45
map_valuesMethod · 0.45

Calls 3

ValueClass · 0.70
fFunction · 0.50
as_u32Method · 0.45

Tested by

no test coverage detected