Crate atomic_enums
source ·Expand description
This crate provides an AtomicEnum.
This can only be used with enumerations in which the individual fields are assigned u16 values.
The gen_atomic_enum! macro is provided which can be used to create a valid enumeration.
Macros
Structs
- Stores a atomic enumeration.
Traits
- The trait needs to be implemented for enumeration which shall be used with
AtomicEnum. Additionally the traitsInto<u16>andFrom<u16>have to be implemented.