pub trait IeeeExt: Float {
// Required method
fn pi() -> Self;
// Provided methods
fn one() -> Self { ... }
fn two() -> Self { ... }
fn three() -> Self { ... }
fn clamp(self, min: Self, max: Self) -> Self { ... }
}
Expand description
Extend functionality of rustc_apfloat
softfloats for IEEE float types.
Required Methods§
Provided Methods§
fn one() -> Self
fn two() -> Self
fn three() -> Self
fn clamp(self, min: Self, max: Self) -> 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.