pub trait Float: Num {
// Required methods
fn floor(a: Self) -> Self;
fn ceil(a: Self) -> Self;
fn round(a: Self) -> Self;
fn exp(a: Self) -> Self;
}
Required Methods§
fn floor(a: Self) -> Self
fn ceil(a: Self) -> Self
fn round(a: Self) -> Self
fn exp(a: 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.