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