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

pub trait NumberOfBytes: Copy + Clone + Debug + Default {
    type AsBytes: ByteArray;
    fn number_of_bytes() -> u8;
}

Number of bytes that the generic type should occupy.

Associated Types

The byte array type that holds these bytes, for instance [u8; 2].

Required Methods

The numberical number of bytes.

Implementors