Struct ocaml_interop::BoxRoot [−][src]
pub struct BoxRoot<T: 'static> { /* fields omitted */ }Expand description
BoxRoot<T> is a container for a rooted OCaml<T> value.
Implementations
impl<T> BoxRoot<T>[src]
impl<T> BoxRoot<T>[src]pub fn get<'a>(&self, cr: &'a OCamlRuntime) -> OCaml<'a, T>[src]
pub fn get<'a>(&self, cr: &'a OCamlRuntime) -> OCaml<'a, T>[src]Gets the value stored in this root as an OCaml<T>.
Trait Implementations
impl<T> ToOCaml<T> for BoxRoot<T>[src]
impl<T> ToOCaml<T> for BoxRoot<T>[src]fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, 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]
fn to_boxroot(&self, cr: &mut OCamlRuntime) -> BoxRoot<T>[src]Convert to OCaml value. Return an already rooted value as BoxRoot<T>.
Auto Trait Implementations
impl<T> RefUnwindSafe for BoxRoot<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Send for BoxRoot<T>
impl<T> !Sync for BoxRoot<T>
impl<T> Unpin for BoxRoot<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for BoxRoot<T> where
T: UnwindSafe,
T: UnwindSafe,