Skip to main content

fun

Macro fun 

Source
macro_rules! fun {
    ($alloc:expr, args=[ $( $args:expr, )+ ], $body:expr) => { ... };
    ($alloc:expr, args=[ $( $args:expr, )* ], $next_arg:expr $(, $rest:expr )+) => { ... };
    ( $alloc:expr, $arg:expr, $body:expr $(,)?) => { ... };
    ( $alloc:expr, $arg1:expr, $arg2:expr $(, $rest:expr )+ $(,)?) => { ... };
}
Expand description

Multi argument function for types implementing Into<Ident> (for the identifiers), and Into<NickelValue> for the body.