Crate ocaml_derive
source ·Attribute Macros§
bytecode_func
is used export Rust functions to OCaml, performing the necessary wrapping/unwrapping automatically.func
is used export Rust functions to OCaml, performing the necessary wrapping/unwrapping automatically.native_func
is used export Rust functions to OCaml, it has much lower overhead thanfunc
and expects all arguments and return type to to beValue
.
Derive Macros§
- Derive
ocaml::FromValue
- Derive
ocaml::ToValue