Skip to main content

IeeeFloat

Trait IeeeFloat 

pub trait IeeeFloat {
Show 22 methods // Required methods fn ieee_add(self, rhs: Self) -> Self; fn ieee_sub(self, rhs: Self) -> Self; fn ieee_mul(self, rhs: Self) -> Self; fn ieee_div(self, rhs: Self) -> Self; fn ieee_eq(self, rhs: Self) -> bool; fn ieee_le(self, rhs: Self) -> bool; fn ieee_ge(self, rhs: Self) -> bool; fn ieee_lt(self, rhs: Self) -> bool; fn ieee_gt(self, rhs: Self) -> bool; fn ieee_neg(self) -> Self; fn ieee_floor(self) -> Self; fn ieee_ceil(self) -> Self; fn ieee_round(self) -> Self; fn ieee_round_ties_even(self) -> Self; fn ieee_trunc(self) -> Self; fn ieee_is_normal(self) -> bool; fn ieee_is_subnormal(self) -> bool; fn ieee_is_zero(self) -> bool; fn ieee_is_infinite(self) -> bool; fn ieee_is_nan(self) -> bool; fn ieee_is_negative(self) -> bool; fn ieee_is_positive(self) -> bool;
}

Required Methods§

fn ieee_add(self, rhs: Self) -> Self

fn ieee_sub(self, rhs: Self) -> Self

fn ieee_mul(self, rhs: Self) -> Self

fn ieee_div(self, rhs: Self) -> Self

fn ieee_eq(self, rhs: Self) -> bool

fn ieee_le(self, rhs: Self) -> bool

fn ieee_ge(self, rhs: Self) -> bool

fn ieee_lt(self, rhs: Self) -> bool

fn ieee_gt(self, rhs: Self) -> bool

fn ieee_neg(self) -> Self

fn ieee_floor(self) -> Self

fn ieee_ceil(self) -> Self

fn ieee_round(self) -> Self

fn ieee_round_ties_even(self) -> Self

fn ieee_trunc(self) -> Self

fn ieee_is_normal(self) -> bool

fn ieee_is_subnormal(self) -> bool

fn ieee_is_zero(self) -> bool

fn ieee_is_infinite(self) -> bool

fn ieee_is_nan(self) -> bool

fn ieee_is_negative(self) -> bool

fn ieee_is_positive(self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl IeeeFloat for f32

§

fn ieee_add(self, _rhs: f32) -> f32

§

fn ieee_sub(self, _rhs: f32) -> f32

§

fn ieee_mul(self, _rhs: f32) -> f32

§

fn ieee_div(self, _rhs: f32) -> f32

§

fn ieee_eq(self, _rhs: f32) -> bool

§

fn ieee_le(self, _rhs: f32) -> bool

§

fn ieee_ge(self, _rhs: f32) -> bool

§

fn ieee_lt(self, _rhs: f32) -> bool

§

fn ieee_gt(self, _rhs: f32) -> bool

§

fn ieee_neg(self) -> f32

§

fn ieee_floor(self) -> f32

§

fn ieee_ceil(self) -> f32

§

fn ieee_round(self) -> f32

§

fn ieee_round_ties_even(self) -> f32

§

fn ieee_trunc(self) -> f32

§

fn ieee_is_normal(self) -> bool

§

fn ieee_is_subnormal(self) -> bool

§

fn ieee_is_zero(self) -> bool

§

fn ieee_is_infinite(self) -> bool

§

fn ieee_is_nan(self) -> bool

§

fn ieee_is_negative(self) -> bool

§

fn ieee_is_positive(self) -> bool

§

impl IeeeFloat for f64

§

fn ieee_add(self, _rhs: f64) -> f64

§

fn ieee_sub(self, _rhs: f64) -> f64

§

fn ieee_mul(self, _rhs: f64) -> f64

§

fn ieee_div(self, _rhs: f64) -> f64

§

fn ieee_eq(self, _rhs: f64) -> bool

§

fn ieee_le(self, _rhs: f64) -> bool

§

fn ieee_ge(self, _rhs: f64) -> bool

§

fn ieee_lt(self, _rhs: f64) -> bool

§

fn ieee_gt(self, _rhs: f64) -> bool

§

fn ieee_neg(self) -> f64

§

fn ieee_floor(self) -> f64

§

fn ieee_ceil(self) -> f64

§

fn ieee_round(self) -> f64

§

fn ieee_round_ties_even(self) -> f64

§

fn ieee_trunc(self) -> f64

§

fn ieee_is_normal(self) -> bool

§

fn ieee_is_subnormal(self) -> bool

§

fn ieee_is_zero(self) -> bool

§

fn ieee_is_infinite(self) -> bool

§

fn ieee_is_nan(self) -> bool

§

fn ieee_is_negative(self) -> bool

§

fn ieee_is_positive(self) -> bool

Implementors§