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§
source§impl FromOCaml<OCamlInt32> for i32
impl FromOCaml<OCamlInt32> for i32
source§fn from_ocaml(v: OCaml<'_, OCamlInt32>) -> Self
fn from_ocaml(v: OCaml<'_, OCamlInt32>) -> Self
Convert from OCaml value.
source§impl ToOCaml<OCamlInt32> for i32
impl ToOCaml<OCamlInt32> for i32
source§fn 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.
source§fn 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more