bitfields

Trait BitField

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

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.

Required Associated Constants§

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§