pub trait UnsignedInt:
PartialEq
+ PartialOrd
+ Eq
+ Ord
+ Copy {
const WIDTH: usize;
const MIN_BOUND: Self;
const MAX_BOUND: Self;
// Required methods
fn count_ones(self) -> u32;
fn count_zeros(self) -> u32;
fn succ(&self) -> Self;
fn pred(&self) -> Self;
}Required Associated Constants§
Required Methods§
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn succ(&self) -> Self
fn pred(&self) -> Self
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.