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§
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.