Macro dsl_function
Source macro_rules! dsl_function {
(fn $name:ident ( $($param:ident),* ) = $body:expr ;) => { ... };
}
Expand description
Helper macro for defining custom DSL functions
§Examples
ⓘdsl_function! {
fn ndvi(nir, red) = (nir - red) / (nir + red);
}