fn num_bits_set<N>(n: N) -> u32
where
    N: num_traits::PrimInt,
{
    n.count_ones()
}
/// Counts the number of bits set for the input n. Used for bitflags.
Counts the number of bits set for the input n. Used for bitflags.
Counts the number of bits set for the input n . Used for bitflags .
fn num_bits_set<N>(n: N) -> u32
where
    N: num_traits::PrimInt,
{
    n.count_ones()
}
fn num_bits_set < N > ( n : N ) -> u32 where N : num_traits :: PrimInt , { n . count_ones ( ) }
Counts the number of bits set for the input n. Used for bitflags.
Counts the number of bits set for the input n . Used for bitflags .
n
N
n
N