Crate const_enum

Source
Expand description

The const_enum macro

Macrosยง

  • Turns FFI constants into an enum, freely convertible to and from u32. An extra variant Other(u32) exists to contain values not known to this num. The parameters are: Enum name, path to constants, constant prefix.
  • Turns FFI constants into an enum, freely convertible to and from u32. Enum variants are turned into CamelCase identifiers. An extra variant Other(u32) exists to contain values not known to this num. The parameters are: Enum name, path to constants, constant prefix.