dce-macro 1.0.0

The macros for the dce-router lib
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
macro_rules! punctuated_create {
    ($($expr:expr),+ $(,)?) => { {
        let mut punctuated = Punctuated::new();
        $(punctuated.push($expr);)*
        punctuated
    } };
}

macro_rules! throw {
    ($span:expr, $message:expr $(, $arg:expr)* $(,)?) => { {
        return Err(Error::new($span, format!($message, $($arg),*)));
    } };
}