[][src]Attribute Macro ocaml_derive::ocaml_native_func

#[ocaml_native_func]

native_func is used export Rust functions to OCaml, it has much lower overhead than func and expects all arguments and return type to to be Value.

  • Wraps the function body using ocaml::body