Crate bit_struct[−][src]
Expand description
bit-struct
Macros
Create a bit struct.
Helper macro
Not meant to be directly used
Create enums which have convenient TryFrom/From implementations. This makes using them with the bit_struct macro much easier.
Structs
A struct which allows for getting/setting a given property
UnsafeStorage is used to mark that there are some arbitrary invariants which must be maintained in storing its inner value. Therefore, creation and modifying of the inner value is an “unsafe” behavior. Although it might not be unsafe in traditional Rust terms (no memory unsafety), behavior might be “undefined”—or at least undocumented, because invariants are expected to be upheld.
Traits
A trait which defines how many bits are needed to store a struct.