13 lines
265 B
Rust
13 lines
265 B
Rust
macro_rules! bytes {
|
|
($expression:expr) => {
|
|
format!("{}\n", $expression).into_bytes()
|
|
};
|
|
}
|
|
|
|
macro_rules! map {
|
|
($($k:expr => $v:expr),* $(,)?) => {{
|
|
let mut m = ::std::collections::BTreeMap::new();
|
|
$(m.insert($k, $v);)+
|
|
m
|
|
}};
|
|
}
|