Packing

Trait Packing 

Source
pub trait Packing<const WORD_SIZE: u8>: Sealed {
    const FPACK: u32;
}
Expand description

Packing is useful to have function variants over so is provided as a trait

Required Associated Constants§

Source

const FPACK: u32

FPACK register field value to set the appropriate byte packing of the FIFO

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Packing<8> for Packing8bit

Source§

const FPACK: u32 = 1u32

Source§

impl Packing<16> for Packing16bit

Source§

const FPACK: u32 = 2u32

Source§

impl<const WORD_SIZE: u8> Packing<WORD_SIZE> for PackingNone

Source§

const FPACK: u32 = 0u32