pub enum Value<E: Extension> {
Boolean(bool),
Integer(i32),
Float(f64),
String(String),
ExtValue(E::Value),
}
Expand description
A value that can be used as a style property
Variants§
Boolean(bool)
A boolean value
Integer(i32)
An integer value
Float(f64)
A floating point value
String(String)
A string value
ExtValue(E::Value)
An extension defined value
Implementations§
source§impl<E> Value<E>where
E: Extension,
impl<E> Value<E>where
E: Extension,
sourcepub fn convert<V>(self) -> Option<V>where
V: ConvertValue<E>,
pub fn convert<V>(self) -> Option<V>where
V: ConvertValue<E>,
Attemps to convert this value into the given type
sourcepub fn convert_ref<V>(&self) -> Option<&V::RefType>where
V: ConvertValue<E>,
pub fn convert_ref<V>(&self) -> Option<&V::RefType>where
V: ConvertValue<E>,
Attemps to convert a reference to this value into the given reference type