Crate ocaml_derive[][src]

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.

Derive Macros

FromValue
IntoValue