pub trait NumDType:
WithDType
+ Num
+ Bounded
+ Sum
+ Product
+ AddAssign
+ SubAssign
+ MulAssign
+ DivAssign {
type Category: NumCategory;
// Required methods
fn from_f64(v: f64) -> Self;
fn to_f64(self) -> f64;
fn from_usize(v: usize) -> Self;
fn to_usize(self) -> usize;
fn minimum(lhs: Self, rhs: Self) -> Self;
fn maximum(lhs: Self, rhs: Self) -> Self;
fn close(self, other: Self, rtol: f64, atol: f64) -> bool;
fn to_range_storage(start: Self, end: Self) -> Result<Storage<Self>>;
}Required Associated Types§
type Category: NumCategory
Required Methods§
fn from_f64(v: f64) -> Self
fn to_f64(self) -> f64
fn from_usize(v: usize) -> Self
fn to_usize(self) -> usize
fn minimum(lhs: Self, rhs: Self) -> Self
fn maximum(lhs: Self, rhs: Self) -> Self
fn close(self, other: Self, rtol: f64, atol: f64) -> bool
fn to_range_storage(start: Self, end: Self) -> Result<Storage<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.