Trait ocaml_gen::OCamlBinding
source · 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§
Object Safety§
This trait is not object safe.