Struct ocaml_interop::BoxRoot
source · [−]pub struct BoxRoot<T: 'static> { /* private fields */ }Expand description
BoxRoot<T> is a container for a rooted OCaml<T> value.
Implementations
Trait Implementations
sourceimpl<T> ToOCaml<T> for BoxRoot<T>
impl<T> ToOCaml<T> for BoxRoot<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>.
Auto Trait Implementations
impl<T> RefUnwindSafe for BoxRoot<T> where
T: RefUnwindSafe,
impl<T> !Send for BoxRoot<T>
impl<T> !Sync for BoxRoot<T>
impl<T> Unpin for BoxRoot<T> where
T: Unpin,
impl<T> UnwindSafe for BoxRoot<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more