pub trait OCamlBinding {
// Required method
fn ocaml_binding(
env: &mut Env,
rename: Option<&'static str>,
new_type: bool,
) -> String;
}
Expand description
OCamlBinding
is the trait implemented by types to generate their OCaml bindings.
It is usually derived automatically via the Struct macro,
or the CustomType
macro for custom types.
For functions, refer to the func macro.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.