#bitflags #structures #generate #macro #bitmask

blastfig

A macro to generate structures which behave like bitflags

1 unstable release

Uses old Rust 2015

0.3.3 Dec 27, 2015

#20 in #bitmask

49 downloads per month
Used in 5 crates (via libmultilog)

MIT/Apache

21KB
380 lines

bitflags

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

Build Status

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]

bitflags = "0.3"

and this to your crate root:

#[macro_use]
extern crate bitflags;

lib.rs:

A typesafe bitmask flag generator.

Dependencies