Skip to main content

BitMath

Trait BitMath 

Source
pub trait BitMath {
    // Required methods
    fn most_significant_bit(self) -> usize;
    fn least_significant_bit(self) -> usize;
}
Expand description

Trait to associate bit math functions with Uint types.

Required Methods§

Implementations on Foreign Types§

Source§

impl<const BITS: usize, const LIMBS: usize> BitMath for Uint<BITS, LIMBS>

Implementors§