pub trait Fp:
Copy
+ PartialOrd
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self>
+ Div<Output = Self>
+ Neg<Output = Self>
+ AddAssign
+ MulAssign
+ Send
+ Sync
+ 'static {
const ZERO: Self;
const ONE: Self;
// Required methods
fn exp(self) -> Self;
fn sqrt(self) -> Self;
fn maxf(self, o: Self) -> Self;
fn fromf(x: f64) -> Self;
fn f64(self) -> f64;
}Expand description
Minimal float abstraction: just enough for the fixed graph. Not a general numeric tower — two impls (f32/f64), no external crates.
Required Associated Constants§
Required Methods§
fn exp(self) -> Self
fn sqrt(self) -> Self
fn maxf(self, o: Self) -> Self
fn fromf(x: f64) -> Self
fn f64(self) -> f64
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".