pub unsafe trait FromValue {
fn from_value(v: Value) -> Self;
}
Expand description
FromValue
is used to convert from OCaml values to Rust types
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
sourcefn from_value(v: Value) -> Self
fn from_value(v: Value) -> Self
Convert from OCaml value