IntoValue

Trait IntoValue 

Source
pub trait IntoValue {
    // Required method
    fn into_value(self) -> Value;
}
Expand description

A Rust-value to Script-value conversion that consumes the input.

Required Methods§

Source

fn into_value(self) -> Value

Converts this type into the related Value variant.

Implementations on Foreign Types§

Source§

impl IntoValue for &str

Source§

impl IntoValue for Value

Source§

impl IntoValue for bool

Source§

impl IntoValue for f32

Source§

impl IntoValue for f64

Source§

impl IntoValue for i8

Source§

impl IntoValue for i16

Source§

impl IntoValue for i32

Source§

impl IntoValue for i64

Source§

impl IntoValue for u8

Source§

impl IntoValue for u16

Source§

impl IntoValue for u32

Source§

impl IntoValue for u64

Source§

impl IntoValue for String

Source§

impl<K: IntoValue> IntoValue for Option<K>

Source§

impl<K: IntoValue> IntoValue for Vec<K>

Source§

impl<K: IntoValue> IntoValue for HashMap<&str, K>

Source§

impl<K: IntoValue> IntoValue for HashMap<String, K>

Implementors§

Source§

impl IntoValue for pdk_script::Value