pub trait CType:
PartialEq
+ PartialOrd
+ Copy
+ Send
+ Sync
+ Display
+ Debug
+ 'static {
type Float: Float;
const TYPE: &'static str;
const MAX: Self;
const MIN: Self;
const ZERO: Self;
const ONE: Self;
const IS_FLOAT: bool;
Show 14 methods
// Required methods
fn from_f64(float: f64) -> Self;
fn from_float(float: Self::Float) -> Self;
fn abs(self) -> Self;
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 rem(self, other: Self) -> Self;
fn min(l: Self, r: Self) -> Self;
fn max(l: Self, r: Self) -> Self;
fn pow(self, exp: Self) -> Self;
fn round(self) -> Self;
fn to_f64(self) -> f64;
fn to_float(self) -> Self::Float;
}
Expand description
A numeric type supported by ha-ndarray
Required Associated Constants§
Required Associated Types§
Required Methods§
Sourcefn from_float(float: Self::Float) -> Self
fn from_float(float: Self::Float) -> Self
Construct an instance of this type from an instance of its floating-point type.
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.