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
sourceimpl<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>,
sourcefn from_ocaml(v: OCaml<'_, OCamlList<OCamlA>>) -> Self
fn from_ocaml(v: OCaml<'_, OCamlList<OCamlA>>) -> Self
Convert from OCaml value.
sourceimpl<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>,
sourcefn 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.
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more