Crate ocaml_derive

Source

Attribute Macros§

ocaml_bytecode_func
bytecode_func is used export Rust functions to OCaml, performing the necessary wrapping/unwrapping automatically.
ocaml_func
func is used export Rust functions to OCaml, performing the necessary wrapping/unwrapping automatically.
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.
ocaml_sig

Derive Macros§

FromValue
Derive ocaml::FromValue
ToValue
Derive ocaml::ToValue