Return the `f64` from a `WasmValue`, if it is a `F64`.
(&self)
| 283 | |
| 284 | /// Return the `f64` from a `WasmValue`, if it is a `F64`. |
| 285 | pub const fn as_f64(&self) -> Option<f64> { |
| 286 | match self { |
| 287 | Self::F64(i) => Some(*i), |
| 288 | _ => None, |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | /// Return the raw little-endian bytes from a `WasmValue`, if it is a `V128`. |
| 293 | pub const fn as_v128(&self) -> Option<[u8; 16]> { |
no outgoing calls
no test coverage detected