macro_rules! tag_list {
($($key:literal: $value:literal),* $(,)?) => { ... };
}
Expand description
Nice syntax for creating an OwnedTagList
using literals.
Mainly useful to test which would work on TagList
with hardcoded data.
use libosmium::tag_list;
let tags = tag_list! {
"amenity": "bar",
"name": "Hacker's pub",
"opening_hours": "Mo-Su 00:00-06:00,14:00-24:00"
};