pub trait FloatData<T>:
Mul<Output = T>
+ Display
+ Add<Output = T>
+ Div<Output = T>
+ Neg<Output = T>
+ Copy
+ Debug
+ PartialEq
+ PartialOrd
+ AddAssign
+ Sub<Output = T>
+ SubAssign
+ Sum
+ Send
+ Sync {
const ZERO: T;
const ONE: T;
const MIN: T;
const MAX: T;
const NAN: T;
const INFINITY: T;
// Required methods
fn from_usize(v: usize) -> T;
fn from_u16(v: u16) -> T;
fn is_nan(self) -> bool;
fn ln(self) -> T;
fn exp(self) -> T;
}Expand description
Data trait used throughout the package to control for floating point numbers.
Required Associated Constants§
const ZERO: T
const ONE: T
const MIN: T
const MAX: T
const NAN: T
const INFINITY: T
Required Methods§
fn from_usize(v: usize) -> T
fn from_u16(v: u16) -> T
fn is_nan(self) -> bool
fn ln(self) -> T
fn exp(self) -> T
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.