pub trait Float: Num {
const PI: Self;
// Required methods
fn signum(self) -> Self;
fn floor(self) -> Self;
fn ceil(self) -> Self;
fn sqrt(self) -> Self;
fn tan(self) -> Self;
fn sin(self) -> Self;
fn cos(self) -> Self;
fn sin_cos(self) -> (Self, Self);
fn atan2(y: Self, x: Self) -> Self;
fn is_finite(self) -> bool;
fn as_f32(self) -> f32;
}
Required Associated Constants§
Required Methods§
fn signum(self) -> Self
fn floor(self) -> Self
fn ceil(self) -> Self
fn sqrt(self) -> Self
fn tan(self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn sin_cos(self) -> (Self, Self)
fn atan2(y: Self, x: Self) -> Self
fn is_finite(self) -> bool
fn as_f32(self) -> f32
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.