Type Definition ocaml_interop::OCamlRef[][src]

type OCamlRef<'a, T> = &'a OCamlCell<T>;
Expand description

An OCamlRef<T> is a reference to a location containing a OCaml<T> value.

Usually obtained as the result of rooting an OCaml value.

Trait Implementations

impl<'root, T> ToOCaml<T> for OCamlRef<'root, T>[src]

fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, T>[src]

Convert to OCaml value.

fn to_boxroot(&self, cr: &mut OCamlRuntime) -> BoxRoot<T>[src]

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