Enum brevdash_data::DataValue [−][src]
Expand description
The value of a data entry.
Variants
Boolean(bool)
A boolean value.
Integer(i64)
An integer value.
Implementations
Unwrap the contained value if it is a DataValue::Boolean. If the value is not a DataValue::Boolean, this method panics.
Unwrap the contained value if it is a DataValue::Integer. If the value is not a DataValue::Integer, this method panics.
Get the contained value if it is a DataValue::Boolean. If the value is not a DataValue::Boolean, None is returned.
Get the contained value if it is a DataValue::Integer. If the value is not a DataValue::Integer, None is returned.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for DataValue
impl UnwindSafe for DataValue
Blanket Implementations
Mutably borrows from an owned value. Read more