Trait FromHostValue
pub trait FromHostValue: Sized {
// Required methods
fn from_host_value(v: &Value) -> Self;
fn host_type() -> HostType;
}Expand description
Extracts a Rust argument from a Value for a registered host closure.
Required Methods§
fn from_host_value(v: &Value) -> Self
fn host_type() -> HostType
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.