macro_rules! char_map {
($($char:literal => $client_id:expr),* $(,)?) => { ... };
}Expand description
Macro to conveniently create a HashMap<char, &str> mapping characters to
client IDs.
ยงExamples
use bloop_server_framework::char_map;
let letters = char_map! {
'a' => "client1",
'b' => "client2",
'c' => "client3",
};