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

Method as_ref

crates/wasmtime/src/runtime/types.rs:272–277  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

270 /// type.
271 #[inline]
272 pub fn as_ref(&self) -> Option<&RefType> {
273 match self {
274 ValType::Ref(r) => Some(r),
275 _ => None,
276 }
277 }
278
279 /// Get the underlying reference type, panicking if this value type is not a
280 /// reference type.

Callers 15

precompile_saveMethod · 0.45
precompile_loadMethod · 0.45
module_definitionMethod · 0.45
registerMethod · 0.45
run_wastMethod · 0.45
run_directiveMethod · 0.45
valFunction · 0.45
envsMethod · 0.45
envMethod · 0.45
argsMethod · 0.45
argMethod · 0.45
initial_cwdMethod · 0.45

Calls

no outgoing calls

Tested by 4

child_processFunction · 0.36
fp16Function · 0.36
fp32Function · 0.36
i64Function · 0.36