wasmtime_math

Trait WasmFloat

Source
pub trait WasmFloat {
    // Required methods
    fn wasm_trunc(self) -> Self;
    fn wasm_copysign(self, sign: Self) -> Self;
    fn wasm_floor(self) -> Self;
    fn wasm_ceil(self) -> Self;
    fn wasm_sqrt(self) -> Self;
    fn wasm_abs(self) -> Self;
    fn wasm_nearest(self) -> Self;
    fn wasm_minimum(self, other: Self) -> Self;
    fn wasm_maximum(self, other: Self) -> Self;
    fn mul_add(self, b: Self, c: Self) -> Self;
}

Required Methods§

Source

fn wasm_trunc(self) -> Self

Source

fn wasm_copysign(self, sign: Self) -> Self

Source

fn wasm_floor(self) -> Self

Source

fn wasm_ceil(self) -> Self

Source

fn wasm_sqrt(self) -> Self

Source

fn wasm_abs(self) -> Self

Source

fn wasm_nearest(self) -> Self

Source

fn wasm_minimum(self, other: Self) -> Self

Source

fn wasm_maximum(self, other: Self) -> Self

Source

fn mul_add(self, b: Self, c: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WasmFloat for f32

Source§

fn wasm_trunc(self) -> f32

Source§

fn wasm_copysign(self, sign: f32) -> f32

Source§

fn wasm_floor(self) -> f32

Source§

fn wasm_ceil(self) -> f32

Source§

fn wasm_sqrt(self) -> f32

Source§

fn wasm_abs(self) -> f32

Source§

fn wasm_nearest(self) -> f32

Source§

fn wasm_maximum(self, other: f32) -> f32

Source§

fn wasm_minimum(self, other: f32) -> f32

Source§

fn mul_add(self, b: f32, c: f32) -> f32

Source§

impl WasmFloat for f64

Source§

fn wasm_trunc(self) -> f64

Source§

fn wasm_copysign(self, sign: f64) -> f64

Source§

fn wasm_floor(self) -> f64

Source§

fn wasm_ceil(self) -> f64

Source§

fn wasm_sqrt(self) -> f64

Source§

fn wasm_abs(self) -> f64

Source§

fn wasm_nearest(self) -> f64

Source§

fn wasm_maximum(self, other: f64) -> f64

Source§

fn wasm_minimum(self, other: f64) -> f64

Source§

fn mul_add(self, b: f64, c: f64) -> f64

Implementors§