Trait IntoRust
ocaml_interop
pub trait IntoRust<T>: Sized { fn into_rust(self) -> T; }
Counterpart to FromOCaml, usually more comfortable to use.
FromOCaml
fn into_rust(self) -> T
Convert into a Rust value.
impl<'a, T, U> IntoRust<U> for OCaml<'a, T> where U: FromOCaml<T>,
fn into_rust(self) -> U