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

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

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