pub trait UNum: Sized + Copy + Debug + Display + Add<Output = Self> + AddAssign + Sub<Output = Self> + SubAssign + Mul<Output = Self> + MulAssign + Div<Output = Self> + DivAssign + PartialEq + PartialOrd + SampleUniform {
const ZERO: Self;
const ONE: Self;
// Provided method
fn sqr(self) -> Self { ... }
}
Expand description
Generic number, possibly unsigned
Required Associated Constants§
Provided Methods§
fn sqr(self) -> Self
fn sqr(self) -> Self
Calculate squared value (self * self
)
Object Safety§
This trait is not object safe.