Skip to main content

FloatBounds

Trait FloatBounds 

Source
pub trait FloatBounds {
    const MIN: Option<f64>;
    const MAX: Option<f64>;
    const EXCLUSIVE_MIN: bool = false;
    const EXCLUSIVE_MAX: bool = false;
}
Expand description

Inclusive/exclusive bounds for BoundedFloat.

Required Associated Constants§

Source

const MIN: Option<f64>

Lower bound; None means unbounded below.

Source

const MAX: Option<f64>

Upper bound; None means unbounded above.

Provided Associated Constants§

Source

const EXCLUSIVE_MIN: bool = false

When true, values equal to MIN are rejected.

Source

const EXCLUSIVE_MAX: bool = false

When true, values equal to MAX are rejected.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§