Skip to main content

IntoHostValue

Trait IntoHostValue 

Source
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".

Implementations on Foreign Types§

Source§

impl IntoHostValue for &str

Source§

impl IntoHostValue for ()

Source§

impl IntoHostValue for String

Source§

impl IntoHostValue for bool

Source§

impl IntoHostValue for f64

Source§

impl IntoHostValue for i32

Source§

impl IntoHostValue for i64

Source§

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

Source§

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

Source§

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

Implementors§