Skip to main content

ToValue

Trait ToValue 

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

Required Methods§

Source

fn to_value(&self) -> Value

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

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

Implementors§