(self)
| 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> { |
no outgoing calls