BitFieldImpl

Trait BitFieldImpl 

Source
pub trait BitFieldImpl
where Self::Container: Into<Self>, Self: Into<Self::Container> + AsRef<Self::Container> + AsMut<Self::Container>,
{ type Container: BitContainer; type BitOrder: BitOrder; }
Expand description

Internal trait required by BitField.

BitFieldImpl is not meant to be implemented manually. It is automatically implemented by the bitfield macro.

§Usage

End-users generally do not interact with BitFieldImpl directly. Instead, they use the convenience methods provided by BitField.

Required Associated Types§

Source

type Container: BitContainer

The underlying storage type for the bitfield.

This type defines where the raw bits are stored. It must implement BitContainer.

Source

type BitOrder: BitOrder

Indicates the bit numbering order used by the bitfield.

This associated type has no functional impact; it exists purely for semantic clarity.

Set automatically by the bitorder attribute (LSB0 by default).

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§