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

Traits

  • The trait needs to be implemented for enumeration which shall be used with AtomicEnum. Additionally the traits Into<u16> and From<u16> have to be implemented.

Derive Macros