Registry / utility / fastrange-rs

fastrange-rs

JSON →
library0.1.0rscratesunverified

A fast alternative to the modulo reduction ported to Rust for efficient range mapping.

# Cargo.toml [dependencies] fastrange-rs = "0.1.0"
INSTALL
IMPORT
SIG · FASTRANGE-RS
F
fastrange-rs
utilityrustv0.1.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.

fastrange
✓ use fastrange::fastrange;

Maps a 32-bit integer to a range [0, n) using fast reduction.

use fastrange::fastrange; fn main() { let result = fastrange(42, 10); println!("Mapped value: {}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fastrange-rs — cargo add fastrange-rs · libregistry