pub trait FloatingNumber:
RealNumber
+ NumberField
+ Signed {
const PI: &'static Self;
const E: &'static Self;
// Required methods
fn floor(&self) -> Self;
fn ceil(&self) -> Self;
fn round(&self) -> Self;
fn trunc(&self) -> Self;
fn fract(&self) -> Self;
}Required Associated Constants§
Required Methods§
fn floor(&self) -> Self
fn ceil(&self) -> Self
fn round(&self) -> Self
fn trunc(&self) -> Self
fn fract(&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.