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

Method as_value

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

Return this argument as a `Value`, if it is one, or `None` otherwise.

(&self)

Source from the content-addressed store, hash-verified

246 /// Return this argument as a `Value`, if it is one, or `None`
247 /// otherwise.
248 pub fn as_value(&self) -> Option<Value> {
249 match *self {
250 BlockArg::Value(v) => Some(v),
251 _ => None,
252 }
253 }
254
255 /// Update the contained value, if any.
256 pub fn map_value<F: FnMut(Value) -> Value>(&self, mut f: F) -> Self {

Callers 2

mutateMethod · 0.80
inst_valuesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected