Trait greenwasm_spectest::NanPayload[][src]

pub trait NanPayload {
    fn payload(&self) -> u64;
fn signif() -> u32;
fn infinite() -> Self;
fn canonical_payload() -> u64;
fn arithmetic_nan(payload: u64) -> Self;
fn canonical_nan() -> Self;
fn is_arithmetic_nan(&self) -> bool;
fn is_canonical_nan(&self) -> bool; }

Extension trait for floating point values.

Provides methods for accessing the payload of a NaN according to the webassembly spec.

According to the spec, any canonical NaN is also an arithmetic one.

Required Methods

Returns the payload bits of a NaN value.

Returns the number of significant digits in a NaN value.

Returns positive infinite.

Returns the payload of a canonical NaN.

Returns an arithmetic NaN with the given payload.

Returns a canonical NaN.

Checks if a value is an arithmetic NaN.

Checks if a value is a canonical NaN.

Implementations on Foreign Types

impl NanPayload for f32
[src]

impl NanPayload for f64
[src]

Implementors