lezeh-common 0.0.1

Common functionalities for lezeh. See https://github.com/sendyhalim/lezeh for details.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// let m: HashMap<i32, i32> = {
///  1 => 2,
///  3 => 4
/// };
#[allow(unused_macros)]
macro_rules! hashmap_literal {
  ($($key:expr => $value:expr),* $(,)?) => {{
    use std::collections::HashMap;

    HashMap::from([
      $(($key, $value),)*
    ])
  }}
}

#[allow(unused_imports)]
pub(crate) use hashmap_literal;