ToValue

Trait ToValue 

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

A type that can be converted into a Value.

Required Methods§

Source

fn to_value(&self) -> Value<'_>

Perform the conversion.

Implementations on Foreign Types§

Source§

impl ToValue for bool

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for char

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for f32

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for f64

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for i8

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for i16

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for i32

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for i64

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for i128

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for isize

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for str

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for u8

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for u16

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for u32

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for u64

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for u128

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for ()

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for usize

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<i8>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<i16>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<i32>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<i64>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<i128>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<isize>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<u8>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<u16>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<u32>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<u64>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<u128>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZero<usize>

Source§

fn to_value(&self) -> Value<'_>

Source§

impl<'a, T> ToValue for &'a T
where T: ToValue + ?Sized,

Source§

fn to_value(&self) -> Value<'_>

Source§

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

Source§

fn to_value(&self) -> Value<'_>

Implementors§

Source§

impl<'v> ToValue for Value<'v>