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.3.1"
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,
- No std dependency.
- FFI compatible.
Example
encap_enum!
License
encap_enum is licenced under the MIT Licence.
- fixed incorrect documentation.