Attribute Macro rustler_codegen::nif
source · [−]#[nif]
Expand description
Implementation of a Native Implemented Function (NIF) macro that lets the user annotate a function that will be wrapped in higer-level NIF implementation.
ⓘ
#[nif]
fn add(a: i64, b: i64) -> i64 {
a + b
}