encap_enum-0.2.1 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.2.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
Example
encap_enum!
note: The internal data structure is a tuple struct.
License
encap_enum is licenced under the MIT Licence.
- changed
encap_enum_implto__encap_enum_impl.__encap_enum_implis hidden from documentation.
- fixed visibility bug for methods.
- get_bit now has the same visibility as tuple struct data.