2022-05-15 19:38:46 +00:00
|
|
|
macro_rules! bytes {
|
2022-02-22 14:16:50 +00:00
|
|
|
($expression:expr) => {
|
2022-05-15 19:38:46 +00:00
|
|
|
format!("{}\n", $expression).into_bytes()
|
2022-02-22 14:16:50 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! map {
|
|
|
|
($($k:expr => $v:expr),* $(,)?) => {{
|
|
|
|
let mut m = ::std::collections::BTreeMap::new();
|
|
|
|
$(m.insert($k, $v);)+
|
|
|
|
m
|
|
|
|
}};
|
|
|
|
}
|