pub trait NumericDataType:
RawDataType
+ ToPrimitive
+ NumCast
+ From<bool>
+ Sum
+ Product
+ SubAssign
+ Sub<Output = Self>
+ Div<Output = Self>
+ MulAdd<Output = Self>
+ DotProduct
+ ReduceSum
+ ReduceProduct
+ ReduceMin
+ ReduceMax
+ ReduceMinMagnitude
+ ReduceMaxMagnitude
+ BinaryOpAdd
+ BinaryOpSub
+ BinaryOpMul {
type AsFloatType: FloatDataType;
// Provided methods
fn to_float(&self) -> Self::AsFloatType { ... }
fn ceil(&self) -> Self { ... }
fn floor(&self) -> Self { ... }
}Required Associated Types§
Provided Methods§
fn to_float(&self) -> Self::AsFloatType
fn ceil(&self) -> Self
fn floor(&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.