Expand description
Type definition of an owned bitfield with compile-time calculation of mask and shift
Structs§
- BitField
Impl - Marker type representing an owned bitfield.
TOwneris the owning type of the bitfield.ShiftandMaskaretypenum::Unsignedtypes representing the shift and mask values used to access the bitfield. These are both converted to constants in theBitFieldTraitimplemented for this struct.
Traits§
- BitField
Trait - Tracks the
Owner, shift and mask used by theStorage::*methods to provide access to an owned bit field.
Type Aliases§
- BitField
- Define a BitField bound to
TOWner(typically aStorage). The bit range of the field includes bits fromXtoYinclusively. The ordering of bit positions does not matter:BitField<Owner, B0, B7>defines the same field asBitField<Owner, B7, B0>although technically the two are distinct types.