pub struct OCamlBytes {}Expand description
Trait Implementations§
Source§impl FromOCaml<OCamlBytes> for Vec<u8>
impl FromOCaml<OCamlBytes> for Vec<u8>
Source§fn from_ocaml(v: OCaml<'_, OCamlBytes>) -> Self
fn from_ocaml(v: OCaml<'_, OCamlBytes>) -> Self
Convert from OCaml value.
Source§impl FromOCaml<OCamlBytes> for Box<[u8]>
impl FromOCaml<OCamlBytes> for Box<[u8]>
Source§fn from_ocaml(v: OCaml<'_, OCamlBytes>) -> Self
fn from_ocaml(v: OCaml<'_, OCamlBytes>) -> Self
Convert from OCaml value.
Source§impl FromOCaml<OCamlBytes> for String
impl FromOCaml<OCamlBytes> for String
Source§fn from_ocaml(v: OCaml<'_, OCamlBytes>) -> Self
fn from_ocaml(v: OCaml<'_, OCamlBytes>) -> Self
Convert from OCaml value.
Source§impl ToOCaml<OCamlBytes> for &str
impl ToOCaml<OCamlBytes> for &str
Source§fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlBytes>
fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlBytes>
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>.Source§impl ToOCaml<OCamlBytes> for &[u8]
impl ToOCaml<OCamlBytes> for &[u8]
Source§fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlBytes>
fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlBytes>
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>.Source§impl ToOCaml<OCamlBytes> for String
impl ToOCaml<OCamlBytes> for String
Source§fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlBytes>
fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlBytes>
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>.Source§impl ToOCaml<OCamlBytes> for Vec<u8>
impl ToOCaml<OCamlBytes> for Vec<u8>
Source§fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlBytes>
fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlBytes>
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>.Source§impl ToOCaml<OCamlBytes> for Box<[u8]>
impl ToOCaml<OCamlBytes> for Box<[u8]>
Source§fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlBytes>
fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlBytes>
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 Freeze for OCamlBytes
impl RefUnwindSafe for OCamlBytes
impl Send for OCamlBytes
impl Sync for OCamlBytes
impl Unpin for OCamlBytes
impl UnsafeUnpin for OCamlBytes
impl UnwindSafe for OCamlBytes
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