pub trait Real:
Field
+ SignedExt
+ Exp
+ Sqrt
+ Trig
+ MinMax {
// Required methods
fn pi() -> Self;
fn frac_pi_3() -> Self;
fn sqrt_3() -> Self;
fn frac_1_sqrt_3() -> Self;
fn floor(self) -> Self;
fn ceil(self) -> Self;
fn trunc(self) -> Self;
fn fract(self) -> Self;
}
Expand description
Field
with special functions and partial ordering
Required Methods§
fn pi() -> Self
fn frac_pi_3() -> Self
fn sqrt_3() -> Self
fn frac_1_sqrt_3() -> Self
fn floor(self) -> Self
fn ceil(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.