Type Alias 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<T> ToOCaml<T> for OCamlRef<'_, 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>.