Trait ocaml_interop::ToOCaml
source · pub unsafe trait ToOCaml<T> {
// Required method
fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, T>;
// Provided method
fn to_boxroot(&self, cr: &mut OCamlRuntime) -> BoxRoot<T> { ... }
}
Expand description
Implements conversion from Rust values into OCaml values.
Required Methods§
sourcefn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, T>
fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, T>
Convert to OCaml value.
Provided Methods§
sourcefn to_boxroot(&self, cr: &mut OCamlRuntime) -> BoxRoot<T>
fn to_boxroot(&self, cr: &mut OCamlRuntime) -> BoxRoot<T>
Convert to OCaml value. Return an already rooted value as BoxRoot
<T>
.