Registry / utility / bitmask

bitmask

JSON →
library0.5.0rscratesunverified

A bitmask generator for enum scoped bit flags.

# Cargo.toml [dependencies] bitmask = "0.5.0"
INSTALL
IMPORT
SIG · BITMASK
B
bitmask
utilityrustv0.5.0
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.

bitmask
use bitmask::bitmask;

Defines a bitmask enum and demonstrates bitwise operations.

use bitmask::bitmask; bitmask! { pub Flags u8 { None = 0, A = 1, B = 2, C = 4, } } fn main() { let flags = Flags::A | Flags::B; println!("Flags: {:?}", flags); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Meta
1
Amazon
1
Resources
bitmask — cargo add bitmask · libregistry