Trait BinaryFloat

Source
pub trait BinaryFloat: Num + PartialOrd {
    type Expo: Integer;

    // Required methods
    fn bits() -> Self::Expo;
    fn eps() -> Self;
    fn two_powi(p: Self::Expo) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn bits() -> Self::Expo

Source

fn eps() -> Self

Source

fn two_powi(p: Self::Expo) -> 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 BinaryFloat for f32

Source§

type Expo = i32

Source§

fn bits() -> Self::Expo

Source§

fn eps() -> Self

Source§

fn two_powi(p: Self::Expo) -> Self

Source§

impl BinaryFloat for f64

Source§

type Expo = i32

Source§

fn bits() -> Self::Expo

Source§

fn eps() -> Self

Source§

fn two_powi(p: Self::Expo) -> Self

Implementors§