pub trait Scalar: Add<Self, Output = Self> + Copy + From<f32> + From<u32> + PartialEq + PartialOrd + Sub<Self, Output = Self> + Mul<Self, Output = Self> + Div<Self, Output = Self> + Neg<Output = Self> + Sin<Output = Self> + Cos<Output = Self> + Pow<Self, Output = Self> + ZeroOneTwo {
fn abs(self) -> Self { ... }
fn max(self, other: Self) -> Self { ... }
fn min(self, other: Self) -> Self { ... }
}
Expand description
Trait for math with scalar numbers