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

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.

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