pub trait Common: Default + PartialOrd + Debug {
type Array: Array<Output = u8>;
const ZERO: Self;
const ONE: Self;
const MAX: Self;
const BYTES: u8 = _;
const BITS: u8 = _;
// Required methods
fn leading_zeros(&self) -> u8;
fn trailing_zeros(&self) -> u8;
fn count_ones(&self) -> u8;
// Provided method
fn log2(&self) -> u8 { ... }
}
Required Associated Types§
Required Associated Constants§
Provided Associated Constants§
Required Methods§
fn leading_zeros(&self) -> u8
fn trailing_zeros(&self) -> u8
fn count_ones(&self) -> u8
Provided Methods§
Object Safety§
This trait is not object safe.