Trait ocaml::FromValue

source ·
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§

Convert from OCaml value

Implementations on Foreign Types§

Implementors§