rangemapMacro range_map
source macro_rules! range_map {
($($k:expr => $v:expr),* $(,)?) => { ... };
}
Expand description
Create a RangeMap
from key-value pairs.
ยงExample
let map = range_map!{
0..100 => "abc",
100..200 => "def",
200..300 => "ghi"
};