runtime_builtin

Attribute Macro runtime_builtin 

Source
#[runtime_builtin]
Expand description

Attribute used to mark functions as implementing a runtime builtin.

Example:

use runmat_macros::runtime_builtin;

#[runtime_builtin(name = "plot")]
pub fn plot_line(xs: &[f64]) {
    /* implementation */
}

This registers the function with the runmat-builtins inventory so the runtime can discover it at start-up.