pub trait BoundedMeasure: Measure + Sub<Self, Output = Self> {
// Required methods
fn min() -> Self;
fn max() -> Self;
fn overflowing_add(self, rhs: Self) -> (Self, bool);
fn from_f32(val: f32) -> Self;
fn from_f64(val: f64) -> Self;
}
Required Methods§
fn min() -> Self
fn max() -> Self
fn overflowing_add(self, rhs: Self) -> (Self, bool)
fn from_f32(val: f32) -> Self
fn from_f64(val: f64) -> Self
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.