| Crates.io | bitmask |
| lib.rs | bitmask |
| version | 0.5.0 |
| created_at | 2017-01-20 22:04:13.991237+00 |
| updated_at | 2019-03-18 08:01:16.622189+00 |
| description | A bitmask generator for enum scoped bit flags. |
| homepage | https://github.com/d3lio/bitmask |
| repository | https://github.com/d3lio/bitmask |
| max_upload_size | |
| id | 8148 |
| size | 44,970 |
A bitmask generator for enum scoped bit flags
Add bitmask as a dependency in your Cargo.toml:
[dependency]
bitmask = "^0.5.0"
Then add this snippet to your crate's root:
#[macro_use]
extern crate bitmask;
Bitmask supports one feature: std. This is enabled by default, and will draw
in the standard library and also automatically derive of Hash and Debug for
generated types. If you prefer not to derive these features, then ensure you
do not enable the default features.
Run a specific example with cargo run --example <name>.