https://github.com/xor-bits/map-range
value range remapper
https://github.com/xor-bits/map-range
Last synced: 7 months ago
JSON representation
value range remapper
- Host: GitHub
- URL: https://github.com/xor-bits/map-range
- Owner: xor-bits
- Created: 2022-10-09T15:03:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-31T11:25:27.000Z (almost 3 years ago)
- Last Synced: 2025-06-18T10:54:39.679Z (about 1 year ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# map-range
A super simple crate to map values from a range to another range.
[](https://deps.rs/repo/github/Overpeek/map-range)
[](https://github.com/Overpeek/map-range/actions)
[](https://crates.io/crates/map-range)
[](https://docs.rs/map-range/)
### Example
```rust
use map_range::MapRange;
let _ = 5_i32.map_range(0..10, -10..10);
```