Registry / utility / bitintr

bitintr

JSON →
library0.3.0rscratesunverified

Provides portable bit manipulation intrinsics for efficient bit-level operations.

# Cargo.toml [dependencies] bitintr = "0.3.0"
INSTALL
IMPORT
SIG · BITINTR
B
bitintr
utilityrustv0.3.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.

BitIntr
use bitintr::BitIntr;

Demonstrates counting set bits using the BitIntr trait.

use bitintr::BitIntr; fn main() { let x: u32 = 0b1010; println!("{} has {} bits set", x, x.popcnt()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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