bitflags
A Rust macro to generate structures which behave like a set of bitflags
Usage
Add this to your Cargo.toml
:
[]
= "2.2.0"
and this to your source code:
use bitflags;
Example
Generate a flags structure:
use bitflags;
// The `bitflags!` macro generates `struct`s that manage a set of flags.
bitflags!
Rust Version Support
The minimum supported Rust version is documented in the Cargo.toml
file.
This may be bumped in minor releases as necessary.