pub trait ValueType: Sized + Clone + Into<Value> {
    // Required method
    fn try_from_value(v: &Value) -> Result<Self, ValueTypeError>;
}
Expand description

Values which can be stored in an environment.

Required Methods§

fn try_from_value(v: &Value) -> Result<Self, ValueTypeError>

Attempt to convert the generic Value into this type.

Implementations on Foreign Types§

§

impl ValueType for u64

§

impl ValueType for bool

§

impl ValueType for Arc<str>

§

impl ValueType for f64

§

impl<T> ValueType for Arc<T>where T: 'static + Send + Sync,

Implementors§