pub trait Scalar:
Copy
+ PartialEq
+ PartialOrd
+ Add<Self, Output = Self>
+ Sub<Self, Output = Self>
+ Mul<Self, Output = Self>
+ Div<Self, Output = Self>
+ AddAssign<Self>
+ SubAssign<Self>
+ MulAssign<Self>
+ DivAssign<Self> {
const ZERO: Self;
const ONE: Self;
const TWO: Self;
// Required method
fn abs(self) -> Self;
// Provided methods
fn maxx(self, other: Self) -> Self { ... }
fn minn(self, other: Self) -> Self { ... }
}Expand description
Trait for math with scalar numbers
Required Associated Constants§
Required Methods§
Provided 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.