map-range

Crates.iomap-range
lib.rsmap-range
version0.1.2
sourcesrc
created_at2022-10-09 15:07:44.371414
updated_at2023-08-31 11:25:15.054395
descriptionmap a value from a range to another range
homepage
repositoryhttps://github.com/Overpeek/map-range
max_upload_size
id684046
size6,463
Eemeli Lehtonen (xor-bits)

documentation

https://docs.rs/map-range

README

map-range

A super simple crate to map values from a range to another range.

dependency status build status crates.io docs.rs

Example

use map_range::MapRange;
let _ = 5_i32.map_range(0..10, -10..10);
Commit count: 11

cargo fmt