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

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

    fn byte_array_len() -> usize { ... }
}
Expand description

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.

Provided methods

Implementors