Type Alias 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§

source§

impl<'root, T> ToOCaml<T> for OCamlRef<'root, T>

source§

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

Convert to OCaml value.
source§

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

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