Struct ocaml_interop::OCamlInt32
source · [−]pub struct OCamlInt32 {}Expand description
OCaml<OCamlInt32> is a reference to an OCaml Int32.t (boxed int32) value.
Trait Implementations
sourceimpl FromOCaml<OCamlInt32> for i32
impl FromOCaml<OCamlInt32> for i32
sourcefn from_ocaml(v: OCaml<'_, OCamlInt32>) -> Self
fn from_ocaml(v: OCaml<'_, OCamlInt32>) -> Self
Convert from OCaml value.
sourceimpl ToOCaml<OCamlInt32> for i32
impl ToOCaml<OCamlInt32> for i32
sourcefn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlInt32>
fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlInt32>
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 RefUnwindSafe for OCamlInt32
impl Send for OCamlInt32
impl Sync for OCamlInt32
impl Unpin for OCamlInt32
impl UnwindSafe for OCamlInt32
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