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
type Bytes: NumberOfBytes
type Bytes: NumberOfBytes
Minimal number of bytes that this bit width requires.
Required methods
fn number_of_bits() -> usize
fn number_of_bits() -> usize
The numerical number of bits.