Type Definition ocaml_interop::OCamlRef
source · [−]pub 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
sourceimpl<'root, T> ToOCaml<T> for OCamlRef<'root, T>
impl<'root, T> ToOCaml<T> for OCamlRef<'root, T>
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.
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>.