#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

#25 in #bitmask

Download history 5/week @ 2024-11-13 18/week @ 2024-11-20 19/week @ 2024-11-27 22/week @ 2024-12-04 39/week @ 2024-12-11 13/week @ 2024-12-18 7/week @ 2025-01-08 13/week @ 2025-01-15 9/week @ 2025-01-22 10/week @ 2025-01-29 32/week @ 2025-02-05 9/week @ 2025-02-12 14/week @ 2025-02-19 26/week @ 2025-02-26

83 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