liiir1985 7f62dcda9f | ||
---|---|---|
.. | ||
.github/workflows | ||
patches | ||
src | ||
tests | ||
.cargo_vcs_info.json | ||
Android.bp | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
Cargo.toml | ||
Cargo.toml.orig | ||
LICENSE | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
METADATA | ||
MODULE_LICENSE_APACHE2 | ||
OWNERS | ||
README.md | ||
TEST_MAPPING | ||
cargo2android.json |
README.md
bitflags
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.