Trait packed_struct::types::bits::NumberOfBits [] [src]

pub trait NumberOfBits: Copy + Clone + Debug + Default {
    type Bytes: NumberOfBytes;
    fn number_of_bits() -> u8;
}

Number of bits that the generic type should occupy.

Associated Types

Minimal number of bytes that this bit width requires.

Required Methods

The numerical number of bits.

Implementors