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