map_to_range
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