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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Implementors§