Trait MaxOnes
Other items inhash_trie::traits
pub trait MaxOnes { fn max_ones() -> usize; }
MaxOnes provides a count of the number of bits that can be stored for a given type
MaxOnes
fn max_ones() -> usize
Get the maximum number of bits that can be set to 1.
e.g. u32::max_ones() == 32
u32::max_ones() == 32
impl MaxOnes for u8
impl MaxOnes for u16
impl MaxOnes for u32
impl MaxOnes for u64
impl MaxOnes for u128
impl MaxOnes for usize