encap_enum-0.1.3 has been yanked.
Encap_Enum
Encap_Enum provides the encap_enum! macro for defining enumerations, bitflags and groups of constants.
Usage
Add this to your Cargo.toml:
[]
= "0.1.2"
and this to your crate root:
extern crate encap_enum;
Features
- iterators.
- bit flags.
- encapsulated flag values.
- change
enumvisibility for both internal values and the enum itself.
- change
- supports any number of attributes.
- This includes doc comments,
#[repr(C)],#[derive()], and many others.
- This includes doc comments,
Example
encap_enum!
note
The internal data structure is a tuple struct, so accessing the data must be through .0.
License
encap_enum is licenced under the MIT Licence.