pub trait Integer<T>:
Copy
+ From<u8>
+ PartialEq
+ PartialOrd
+ Add<Output = T>
+ BitAnd<Output = T>
+ BitOr<Output = T>
+ BitXor<Output = T>
+ Div<Output = T>
+ Mul<Output = T>
+ Rem<Output = T>
+ Shl<u32, Output = T>
+ Shr<u32, Output = T>
+ Sub<Output = T> {
const ZERO: T;
const ONE: T;
const TEN: T;
// Required methods
fn trailing_zeros(self) -> u32;
fn minmax(self, other: T) -> (T, T);
}Required Associated Constants§
Required 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.