pub trait Number:
Copy
+ Debug
+ Default
+ PartialEq
+ PartialOrd
+ Add<Output = Self>
+ AddAssign
+ Div<Output = Self>
+ DivAssign
+ Mul<Output = Self>
+ MulAssign
+ Rem<Output = Self>
+ RemAssign
+ Sub<Output = Self>
+ SubAssign
+ Sum<Self>
+ for<'a> Sum<&'a Self>
+ Product<Self>
+ for<'a> Product<&'a Self> {
const ZERO: Self;
const ONE: Self;
const MIN: Self;
const MAX: Self;
// Required methods
fn abs(self) -> Self;
fn rem_euclid(self, rhs: Self) -> Self;
}
Expand description
Trait implemented by the primitive number types, combining common supertraits.
Required Associated Constants§
Required Methods§
fn abs(self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
Object Safety§
This trait is not object safe.