ToValueBehavior

Trait ToValueBehavior 

Source
pub trait ToValueBehavior {
    // Required method
    fn to_value(&self) -> Value;
}
Expand description

A trait for converting types to Value.

Required Methods§

Source

fn to_value(&self) -> Value

Converts a type into a Value.

Implementations on Foreign Types§

Source§

impl ToValueBehavior for &str

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for bool

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for f32

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for f64

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for i8

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for i16

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for i32

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for i64

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for i128

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for isize

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for str

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for u8

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for u16

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for u32

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for u64

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for u128

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for usize

Source§

fn to_value(&self) -> Value

Source§

impl ToValueBehavior for String

Source§

fn to_value(&self) -> Value

Source§

impl<K, V> ToValueBehavior for HashMap<K, V>

Source§

fn to_value(&self) -> Value

Source§

impl<T> ToValueBehavior for Option<T>
where T: ToValueBehavior,

Source§

fn to_value(&self) -> Value

Source§

impl<T, V> ToValueBehavior for BTreeMap<T, V>

Source§

fn to_value(&self) -> Value

Source§

impl<V> ToValueBehavior for Vec<V>
where V: ToValueBehavior,

Source§

fn to_value(&self) -> Value

Implementors§