Skip to main content

FromHostValue

Trait FromHostValue 

Source
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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FromHostValue for String

Source§

impl FromHostValue for bool

Source§

impl FromHostValue for f64

Source§

impl FromHostValue for i32

Source§

impl FromHostValue for i64

Source§

impl<T, S> FromHostValue for HashMap<String, T, S>

Source§

impl<T> FromHostValue for BTreeMap<String, T>
where T: FromHostValue,

Source§

impl<T> FromHostValue for Vec<T>
where T: FromHostValue,

Implementors§