Registry / utility / flagset

flagset

JSON →
library0.4.7rscratesunverified

Provides data types and a macro for generating enumeration-based bit flags.

# Cargo.toml [dependencies] flagset = "0.4.7"
INSTALL
IMPORT
SIG · FLAGSET
F
flagset
utilityrustv0.4.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FlagSet
use flagset::FlagSet;

Minimal example defining and using bit flags with the flags! macro.

use flagset::FlagSet; use flagset::flags; flags! { enum MyFlags: u8 { A = 1, B = 2, C = 4, } } fn main() { let set = FlagSet::from(MyFlags::A | MyFlags::B); assert!(set.contains(MyFlags::A)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources
flagset — cargo add flagset · libregistry