MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / as_ref

Method as_ref

crates/tinywasm/src/interpreter/values.rs:90–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88 /// Converts the value to a reference value (returns None if the value is not a reference value)
89 #[allow(private_interfaces, dead_code)]
90 pub fn as_ref(self) -> Option<ValueRef> {
91 match self {
92 Self::ValueRef(v) => Some(v),
93 _ => None,
94 }
95 }
96
97 /// Attaches a type to the value (panics if the size of the value is not the same as the type)
98 pub fn attach_type(self, ty: WasmType) -> Option<WasmValue> {

Callers 9

importsMethod · 0.80
exportsMethod · 0.80
parse_module_bytesMethod · 0.80
get_idxMethod · 0.80
runFunction · 0.80
exportsMethod · 0.80
exec_memory_initMethod · 0.80
exec_table_initMethod · 0.80

Calls

no outgoing calls