pub trait Number:
CLType
+ Into<Number>
+ CastFrom<Number>
+ Default {
type Abs: Number;
const ZERO: Self;
const ONE: Self;
// Required methods
fn abs(self) -> Self::Abs;
fn add(self, other: Self) -> Self;
fn div(self, other: Self) -> Self;
fn mul(self, other: Self) -> Self;
fn sub(self, other: Self) -> Self;
fn pow(self, exp: Self) -> Self;
}Expand description
A numeric type supported by ha-ndarray
Required Associated Constants§
Required Associated Types§
Required Methods§
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.