Return the `f32` from a `WasmValue`, if it is a `F32`.
(&self)
| 275 | |
| 276 | /// Return the `f32` from a `WasmValue`, if it is a `F32`. |
| 277 | pub const fn as_f32(&self) -> Option<f32> { |
| 278 | match self { |
| 279 | Self::F32(i) => Some(*i), |
| 280 | _ => None, |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | /// Return the `f64` from a `WasmValue`, if it is a `F64`. |
| 285 | pub const fn as_f64(&self) -> Option<f64> { |
no outgoing calls
no test coverage detected