[][src]Module mju_bits::bitfield

Type definition of an owned bitfield with compile-time calculation of mask and shift

Structs

BitFieldImpl

Marker type representing an owned bitfield. TOwner is the owning type of the bitfield. Shift and Mask are typenum::Unsigned types representing the shift and mask values used to access the bitfield. These are both converted to constants in the BitFieldTrait implemented for this struct.

Traits

BitFieldTrait

Tracks the Owner, shift and mask used by the Storage::* methods to provide access to an owned bit field.

Type Definitions

BitField

Define a BitField bound to TOWner (typically a Storage). The bit range of the field includes bits from X to Y inclusively. The ordering of bit positions does not matter: BitField<Owner, B0, B7> defines the same field as BitField<Owner, B7, B0> although technically the two are distinct types.