Skip to main content

IntoValue

Trait IntoValue 

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

Converts a typed Rust value into a Value. Implemented for () (→ Null), i64, f64, String, bool, char, Vec<T>, and Value.

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoValue for bool

Source§

impl IntoValue for char

Source§

impl IntoValue for f64

Source§

impl IntoValue for i64

Source§

impl IntoValue for ()

Source§

impl IntoValue for String

Source§

impl<T: IntoValue + ValueType> IntoValue for Vec<T>

Implementors§