{"id":74920,"library":"fastrange-rs","title":"FastRange","description":"A fast alternative to the modulo reduction ported to Rust for efficient range mapping.","status":"active","version":"0.1.0","language":"rust","source_language":null,"source_url":"https://github.com/ozgrakkurt/fastrange-rs","tags":["performance","modulo","range","optimization"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nfastrange-rs = \"0.1.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add fastrange-rs","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"fastrange","correct":"use fastrange::fastrange;"}],"quickstart":{"code":"use fastrange::fastrange;\n\nfn main() {\n    let result = fastrange(42, 10);\n    println!(\"Mapped value: {}\", result);\n}","lang":"rust","description":"Maps a 32-bit integer to a range [0, n) using fast reduction."},"warnings":[],"env_vars":null,"search_vec":"'altern':4 'effici':13 'fast':3 'fastrang':1 'map':15 'modulo':7,17 'optim':19 'perform':16 'port':9 'rang':14,18 'reduct':8 'rust':11","created_at":"2026-06-17T19:09:57.731552+00:00","updated_at":"2026-06-17T19:09:57.731552+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/ozgrakkurt/fastrange-rs","github":"https://github.com/ozgrakkurt/fastrange-rs","docs":"https://docs.rs/fastrange-rs/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}