Skip to main content

ObjectType

Type Alias ObjectType 

Source
pub type ObjectType = BTreeMap<String, Value>;
Expand description

The object alternative of expression::Value.

Aliased Type§

pub struct ObjectType { /* private fields */ }

Trait Implementations§

Source§

impl ValueConverter for ObjectType

Source§

fn expression_type() -> Type

Source§

fn to_expression_value(&self) -> Value

Source§

fn from_expression_value(value: &Value) -> Option<Self>

Source§

fn vec_from_expression_value(value: &Value) -> Option<Vec<Self>>

ValueConverter<std::vector<T>>::fromExpressionValue: an array, element-wise. C++ specializes it for std::vector<Color> (hillshade_conversions.cpp), which also wraps a single color.