зеркало из https://github.com/mozilla/gecko-dev.git
c61db3912d
MozReview-Commit-ID: GSGQpjXLuVR --HG-- rename : third_party/rust/gcc-0.3.42/LICENSE-APACHE => third_party/rust/bitflags-1.0.0/LICENSE-APACHE rename : third_party/rust/libc-0.2.24/LICENSE-MIT => third_party/rust/bitflags-1.0.0/LICENSE-MIT rename : third_party/rust/bitflags/tests/conflicting_trait_impls.rs => third_party/rust/bitflags-1.0.0/tests/conflicting_trait_impls.rs rename : third_party/rust/bitflags/tests/external.rs => third_party/rust/bitflags-1.0.0/tests/external.rs rename : third_party/rust/bitflags/tests/external_no_std.rs => third_party/rust/bitflags-1.0.0/tests/external_no_std.rs rename : third_party/rust/bitflags/tests/i128_bitflags.rs => third_party/rust/bitflags-1.0.0/tests/i128_bitflags.rs rename : third_party/rust/gcc-0.3.42/LICENSE-APACHE => third_party/rust/lazy_static-0.2.11/LICENSE-APACHE rename : third_party/rust/lazy_static-0.2.8/LICENSE-MIT => third_party/rust/lazy_static-0.2.11/LICENSE-MIT rename : third_party/rust/lazy_static-0.2.9/README.md => third_party/rust/lazy_static-0.2.11/README.md rename : third_party/rust/lazy_static-0.2.8/tests/no_std.rs => third_party/rust/lazy_static-0.2.11/tests/no_std.rs extra : rebase_source : 0a199bf892c53b56c739f18577c28f69df7e65e1 |
||
---|---|---|
.. | ||
src | ||
.cargo-checksum.json | ||
.travis.yml | ||
CHANGELOG.md | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
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.0"
and this to your crate root:
#[macro_use]
extern crate bitflags;
Rust Version Support
The minimum supported Rust version is 1.20 due to use of associated constants.