Trait druid::ValueType

source ·
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§

source

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

Attempt to convert the generic Value into this type.

Implementations on Foreign Types§

source§

impl ValueType for bool

source§

impl ValueType for f64

source§

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

source§

impl ValueType for u64

Implementors§