Trait mpack::IntoValue
[−]
[src]
pub trait IntoValue { fn into_value(self) -> Value; }
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
fn into_value(self) -> Value
Implementors
impl IntoValue for ()
impl IntoValue for bool
impl IntoValue for u8
impl IntoValue for u16
impl IntoValue for u32
impl IntoValue for u64
impl IntoValue for i8
impl IntoValue for i16
impl IntoValue for i32
impl IntoValue for i64
impl IntoValue for f32
impl IntoValue for f64
impl IntoValue for String
impl IntoValue for &'static str
impl<T: IntoValue> IntoValue for Vec<T>