Skip to main content

NormalLimits

Trait NormalLimits 

Source
pub trait NormalLimits {
    const NORM_MAX: Self;
    const NORM_MIN: Self;
}
Expand description

Contains constants limiting the value to normal range.

Required Associated Constants§

Source

const NORM_MAX: Self

Maximum normal value. This is max for ints and 1 for floats.

Source

const NORM_MIN: Self

Minimum normal value. This is min for ints and 0 for floats.

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 NormalLimits for f32

Source§

const NORM_MAX: Self = 1.

Source§

const NORM_MIN: Self = 0.

Source§

impl NormalLimits for f64

Source§

const NORM_MAX: Self = 1.

Source§

const NORM_MIN: Self = 0.

Source§

impl NormalLimits for i8

Source§

const NORM_MAX: Self = i8::MAX

Source§

const NORM_MIN: Self = i8::MIN

Source§

impl NormalLimits for i16

Source§

const NORM_MAX: Self = i16::MAX

Source§

const NORM_MIN: Self = i16::MIN

Source§

impl NormalLimits for i32

Source§

const NORM_MAX: Self = i32::MAX

Source§

const NORM_MIN: Self = i32::MIN

Source§

impl NormalLimits for i64

Source§

const NORM_MAX: Self = i64::MAX

Source§

const NORM_MIN: Self = i64::MIN

Source§

impl NormalLimits for i128

Source§

const NORM_MAX: Self = i128::MAX

Source§

const NORM_MIN: Self = i128::MIN

Source§

impl NormalLimits for u8

Source§

const NORM_MAX: Self = u8::MAX

Source§

const NORM_MIN: Self = u8::MIN

Source§

impl NormalLimits for u16

Source§

const NORM_MAX: Self = u16::MAX

Source§

const NORM_MIN: Self = u16::MIN

Source§

impl NormalLimits for u32

Source§

const NORM_MAX: Self = u32::MAX

Source§

const NORM_MIN: Self = u32::MIN

Source§

impl NormalLimits for u64

Source§

const NORM_MAX: Self = u64::MAX

Source§

const NORM_MIN: Self = u64::MIN

Source§

impl NormalLimits for u128

Source§

const NORM_MAX: Self = u128::MAX

Source§

const NORM_MIN: Self = u128::MIN

Implementors§