Crate ocaml_gen_derive
source ·Expand description
Attribute Macros
- A macro to create OCaml bindings for a function that uses
#[ocaml::func]
Derive Macros
- Derives implementations for
OCamlDesc
andOCamlBinding
on a custom type For example: - The Enum derive macro. It generates implementations of
ToOCaml
andOCamlBinding
on an enum type. The type must implementocaml::IntoValue
andocaml::FromValue
For example: - The Struct derive macro. It generates implementations of
ToOCaml
andOCamlBinding
on a struct. The type must implementocaml::IntoValue
andocaml::FromValue