Trait ToValue

Source
pub trait ToValue {
    // Required methods
    fn to_value(&self) -> Value;
    fn to_value_type(&self) -> Type;
}
Expand description

Converts to Value.

Required Methods§

Source

fn to_value(&self) -> Value

Returns a Value clone of self.

Source

fn to_value_type(&self) -> Type

Returns the type identifer of self.

This is the type of the value to be returned by to_value.

Implementations on Foreign Types§

Source§

impl<T: SetValueOptional> ToValue for Option<T>

Implementors§