Struct ocaml_interop::OCamlList
source · pub struct OCamlList<A> { /* private fields */ }
Expand description
OCaml
<OCamlList<T>>
is a reference to an OCaml list
containing
values of type T
.
Trait Implementations§
source§impl<A, OCamlA> FromOCaml<OCamlList<OCamlA>> for Vec<A>where
A: FromOCaml<OCamlA>,
impl<A, OCamlA> FromOCaml<OCamlList<OCamlA>> for Vec<A>where A: FromOCaml<OCamlA>,
source§fn from_ocaml(v: OCaml<'_, OCamlList<OCamlA>>) -> Self
fn from_ocaml(v: OCaml<'_, OCamlList<OCamlA>>) -> Self
Convert from OCaml value.
source§impl<A, OCamlA: 'static> ToOCaml<OCamlList<OCamlA>> for Vec<A>where
A: ToOCaml<OCamlA>,
impl<A, OCamlA: 'static> ToOCaml<OCamlList<OCamlA>> for Vec<A>where A: ToOCaml<OCamlA>,
source§fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlList<OCamlA>>
fn to_ocaml<'a>(&self, cr: &'a mut OCamlRuntime) -> OCaml<'a, OCamlList<OCamlA>>
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<A> RefUnwindSafe for OCamlList<A>where A: RefUnwindSafe,
impl<A> Send for OCamlList<A>where A: Send,
impl<A> Sync for OCamlList<A>where A: Sync,
impl<A> Unpin for OCamlList<A>where A: Unpin,
impl<A> UnwindSafe for OCamlList<A>where A: UnwindSafe,
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