Trait bitfields::BitField[][src]

pub trait BitField<Repr: Sized = u8>: Debug {
    const POS: usize;
    const WIDTH: usize;
}

Helper trait for defining where in the [BitFieldSet] to put data.

Panics

Currently, the WIDTH field is used in the internal bit-shifting on bytes, meaning that it will panic if the WIDTH > 8.

Associated Constants

Implementors