Crate bytefield

Source
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 with From::from or Into::into.
BitField16
A bit field containing a u16 This is the mutable form and can be converted with From::from or Into::into.
BitField32
A bit field containing a u32 This is the mutable form and can be converted with From::from or Into::into.
BitField64
A bit field containing a u64 This is the mutable form and can be converted with From::from or Into::into.
BitField128
A bit field containing a u128 This is the mutable form and can be converted with From::from or Into::into.
ConstBitField8
A bit field containing a u8 This is the immutable form and can be converted with From::from or Into::into.
ConstBitField16
A bit field containing a u16 This is the immutable form and can be converted with From::from or Into::into.
ConstBitField32
A bit field containing a u32 This is the immutable form and can be converted with From::from or Into::into.
ConstBitField64
A bit field containing a u64 This is the immutable form and can be converted with From::from or Into::into.
ConstBitField128
A bit field containing a u128 This is the immutable form and can be converted with From::from or Into::into.

Traits§

ConstField
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