Expand description
A pure Rust, no-std implementation of bit fields
Macros§
- flags
- Generates an enum of the given flags and their offsets
Structs§
- BitField8
- A bit field containing a
u8
This is the mutable form and can be converted withFrom::from
orInto::into
. - BitField16
- A bit field containing a
u16
This is the mutable form and can be converted withFrom::from
orInto::into
. - BitField32
- A bit field containing a
u32
This is the mutable form and can be converted withFrom::from
orInto::into
. - BitField64
- A bit field containing a
u64
This is the mutable form and can be converted withFrom::from
orInto::into
. - BitField128
- A bit field containing a
u128
This is the mutable form and can be converted withFrom::from
orInto::into
. - Const
BitField8 - A bit field containing a
u8
This is the immutable form and can be converted withFrom::from
orInto::into
. - Const
BitField16 - A bit field containing a
u16
This is the immutable form and can be converted withFrom::from
orInto::into
. - Const
BitField32 - A bit field containing a
u32
This is the immutable form and can be converted withFrom::from
orInto::into
. - Const
BitField64 - A bit field containing a
u64
This is the immutable form and can be converted withFrom::from
orInto::into
. - Const
BitField128 - A bit field containing a
u128
This is the immutable form and can be converted withFrom::from
orInto::into
.
Traits§
- Const
Field - Allows a value to be used as an immutable bit field
- Field
- Allows a value to be used as a mutable bit field
- Flag
- Allows a value to be represented as a bit flag