pub unsafe trait IntoValue {
fn into_value(self, rt: &Runtime) -> Value;
}
Expand description
IntoValue
is used to convert from Rust types to OCaml values
NOTE: This should only be used after the OCaml runtime has been initialized, when calling
Rust functions from OCaml, the runtime is already initialized otherwise ocaml::Runtime::init
should be used
Required Methods
fn into_value(self, rt: &Runtime) -> Value
fn into_value(self, rt: &Runtime) -> Value
Convert to OCaml value