pub trait Bounded<T: PartialOrd> {
    fn bounds(&self) -> (T, T);
}
Expand description

Bounds on a scalar value

Required Methods

Minimum and maximum values (inclusive).

Values x must satisfy min <= x && x <= max. If max < min then the interval is empty.

Implementors