Skip to main content

FromHostValue

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.

Implementations on Foreign Types§

§

impl FromHostValue for bool

§

impl FromHostValue for f64

§

impl FromHostValue for i32

§

impl FromHostValue for i64

§

impl FromHostValue for String

§

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

§

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

§

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

Implementors§