oxidd_core::util

Trait IsFloatingPoint

source
pub trait IsFloatingPoint {
    const FLOATING_POINT: bool;
    const MIN_EXP: i32;
}
Expand description

Is the underlying type a floating point number?

Required Associated Constants§

source

const FLOATING_POINT: bool

true iff the underlying type is a floating point number

source

const MIN_EXP: i32

One greater than the minimum possible normal power of 2 exponent, see f64::MIN_EXP for instance. 0 for integers

Object Safety§

This trait is not object safe.

Implementors§

source§

impl IsFloatingPoint for F64

cbindgen:ignore

source§

const FLOATING_POINT: bool = true

source§

const MIN_EXP: i32 = -1_021i32

source§

impl<T> IsFloatingPoint for Saturating<T>

cbindgen:ignore

source§

const FLOATING_POINT: bool = false

source§

const MIN_EXP: i32 = 0i32

source§

impl<T: ShlAssign<i32>> IsFloatingPoint for T

cbindgen:ignore

source§

const FLOATING_POINT: bool = false

source§

const MIN_EXP: i32 = 0i32