Trait ocaml_interop::ToOCaml[][src]

pub unsafe trait ToOCaml<T> {
    fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, T>;

    fn to_boxroot(&self, cr: &mut OCamlRuntime) -> BoxRoot<T> { ... }
}
Expand description

Implements conversion from Rust values into OCaml values.

Required methods

Convert to OCaml value.

Provided methods

Convert to OCaml value. Return an already rooted value as BoxRoot<T>.

Implementations on Foreign Types

Implementors