pub trait Real: Number + PartialOrd {
const MAX: Self;
const MIN: Self;
// Required methods
fn max(l: Self, r: Self) -> Self;
fn min(l: Self, r: Self) -> Self;
fn rem(self, other: Self) -> Self;
fn round(self) -> Self;
}Expand description
A real-valued Number
Required Associated Constants§
Required Methods§
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.