Trait IntoValue

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

A trait for types that can be written via MessagePack. This is mostly a convenience to avoid having to wrap them yourself each time.

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoValue for &'static str

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 ()

Source§

impl IntoValue for String

Source§

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

Implementors§