Struct ocaml_interop::OCamlBytes
source · pub struct OCamlBytes {}
Expand description
Trait Implementations§
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 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 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 &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 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>
.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>
.Auto Trait Implementations§
impl RefUnwindSafe for OCamlBytes
impl Send for OCamlBytes
impl Sync for OCamlBytes
impl Unpin 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