#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

#17 in #bitmask

Download history 11/week @ 2023-11-27 3/week @ 2023-12-11 7/week @ 2023-12-18 6/week @ 2023-12-25 8/week @ 2024-01-08 6/week @ 2024-01-15 1/week @ 2024-01-29 1/week @ 2024-02-05 16/week @ 2024-02-12 24/week @ 2024-02-19 31/week @ 2024-02-26 21/week @ 2024-03-04 22/week @ 2024-03-11

101 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