Crates.io | map_to_range |
lib.rs | map_to_range |
version | 0.2.0 |
source | src |
created_at | 2024-05-23 19:31:59.896486 |
updated_at | 2024-05-26 13:59:25.025948 |
description | A library to map numbers from on range to another |
homepage | |
repository | https://github.com/JonasFocke01/map_to_range |
max_upload_size | |
id | 1249987 |
size | 18,228 |
map_to_range
hosts a trait MapRange
, that adds a function to numbers to map them from one range to another.
To use this, just bring the trait into scope with use map_to_range::MapRange;
.
This is designed to work in no_std
environments