pub trait OCamlDesc {
// Required methods
fn ocaml_desc(env: &Env, generics: &[&str]) -> String;
fn unique_id() -> u128;
}
Expand description
OCamlDesc
is the trait implemented by types to facilitate generation of
their OCaml bindings.
It is usually derived automatically via the Struct macro,
or the CustomType
macro for custom types.
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.