Skip to main content

IntoHostValue

Trait IntoHostValue 

pub trait IntoHostValue {
    // Required methods
    fn into_host_value(self) -> Value;
    fn host_type() -> HostType;
}
Expand description

Converts a host closure’s return value into a Value.

Required Methods§

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 IntoHostValue for &str

§

impl IntoHostValue for bool

§

impl IntoHostValue for f64

§

impl IntoHostValue for i32

§

impl IntoHostValue for i64

§

impl IntoHostValue for ()

§

impl IntoHostValue for String

§

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

§

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

§

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

Implementors§