pub trait Bits: Unsigned {
    type Store: BitOps + Default + Copy + PartialEq + Debug;
}
Expand description

A type level number signifying the number of bits in a bitmap.

This trait is implemented for type level numbers from U1 to U1024.

Examples

assert_eq!(
    std::mem::size_of::<<U10 as Bits>::Store>(),
    std::mem::size_of::<u16>()
);

Required Associated Types

A primitive integer type suitable for storing this many bits.

Implementations on Foreign Types

Implementors