tree: 75b55a59c1e3084141b5a2efc65bcf7b5e0a0899 [path history] [tgz]
  1. patches/
  2. src/
  3. tests/
  4. .cargo-checksum.json
  5. Android.bp
  6. Cargo.toml
  7. cargo_embargo.json
  8. CHANGELOG.md
  9. CODE_OF_CONDUCT.md
  10. LICENSE-APACHE
  11. LICENSE-MIT
  12. METADATA
  13. MODULE_LICENSE_APACHE2
  14. README.md
  15. TEST_MAPPING
extra_versions/crates/bitflags/README.md

bitflags

Rust Join the chat at https://gitter.im/bitflags/Lobby Latest version Documentation License

A Rust macro to generate structures which behave like a set of bitflags

Usage

Add this to your Cargo.toml:

[dependencies]
bitflags = "1.3"

and this to your source code:

use bitflags::bitflags;

Rust Version Support

The minimum supported Rust version is 1.46 due to use of associated constants and const functions.