pub trait Integerwhere
Self: Copy + Shl<usize, Output = Self> + Shr<usize, Output = Self> + BitAnd<Output = Self> + BitOr<Output = Self> + BitAndAssign + BitOrAssign + Not<Output = Self> + Add<Output = Self> + AddAssign + Sub<Output = Self> + SubAssign + Mul<Output = Self> + MulAssign + Div<Output = Self> + DivAssign + Ord + Sum + Display + Debug + Default + Binary,{
const ZERO: Self;
const ONE: Self;
const TWO: Self;
const MIN: Self;
const MAX: Self;
const MAX_U64: u64;
const N_BITS: usize;
const N_BITS_U64: u64;
const SIGNED: bool;
// Provided methods
fn is_neg(&self) -> bool { ... }
fn abs(&self) -> Self { ... }
fn negate(&self) -> Self { ... }
}Required Associated Constants§
const ZERO: Self
const ONE: Self
const TWO: Self
const MIN: Self
const MAX: Self
const MAX_U64: u64
const N_BITS: usize
const N_BITS_U64: u64
const SIGNED: bool
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.