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

A trait to convert a data type to a Value enum.

Required Methods§

source

fn to_value(&self) -> Value

Converts the data type to a Value enum.

Implementors§