зеркало из https://github.com/mozilla/gecko-dev.git
7c916dff61
MozReview-Commit-ID: AoLr2W2NGhP --HG-- extra : rebase_source : 892ea94c01f575b7f33d7cb740a74af5b58b02b0 |
||
---|---|---|
.. | ||
src | ||
tests | ||
.cargo-checksum.json | ||
.cargo-ok | ||
.travis.yml | ||
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 = "0.7"
and this to your crate root:
#[macro_use]
extern crate bitflags;
128-bit integer bitflags (nightly only)
Add this to your Cargo.toml
:
[dependencies.bitflags]
version = "0.7"
features = ["i128"]
and this to your crate root:
#![feature(i128_type)]
#[macro_use]
extern crate bitflags;