MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / as_f64

Method as_f64

crates/types/src/value.rs:285–290  ·  view source on GitHub ↗

Return the `f64` from a `WasmValue`, if it is a `F64`.

(&self)

Source from the content-addressed store, hash-verified

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]> {

Callers 1

wast_v128_to_bytesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected