[−][src]Struct ocaml_interop::OCamlBytes
OCaml<OCamlBytes>
is a reference to an OCaml bytes
value.
Note
Unlike with OCaml<String>
, there is no validation being performed when converting this
value into String
.
Trait Implementations
impl FromOCaml<OCamlBytes> for Vec<u8>
[src]
fn from_ocaml(v: OCaml<'_, OCamlBytes>) -> Self
[src]
impl FromOCaml<OCamlBytes> for String
[src]
fn from_ocaml(v: OCaml<'_, OCamlBytes>) -> Self
[src]
impl<T: AsRef<[u8]>> ToOCaml<OCamlBytes> for T
[src]
fn to_ocaml(&self, token: OCamlAllocToken) -> OCamlAllocResult<OCamlBytes>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,