pub enum Value {
Simple(SimpleValue),
ValueConstructor(ValueConstructor),
Mapping(MappingValue),
Reference(IdentifierReference),
List(SequenceOfValues),
}
Expand description
Corresponds to the grammar rule value
.
Variants§
Simple(SimpleValue)
ValueConstructor(ValueConstructor)
Mapping(MappingValue)
Reference(IdentifierReference)
List(SequenceOfValues)
Implementations§
source§impl Value
impl Value
pub const fn is_simple(&self) -> bool
pub const fn as_simple(&self) -> Option<&SimpleValue>
pub const fn is_value_constructor(&self) -> bool
pub const fn as_value_constructor(&self) -> Option<&ValueConstructor>
pub const fn is_mapping_value(&self) -> bool
pub const fn as_mapping_value(&self) -> Option<&MappingValue>
pub const fn is_reference(&self) -> bool
pub const fn as_reference(&self) -> Option<&IdentifierReference>
pub const fn is_sequence(&self) -> bool
pub const fn as_sequence(&self) -> Option<&SequenceOfValues>
pub fn is_boolean(&self) -> bool
pub fn as_boolean(&self) -> Option<bool>
pub fn is_double(&self) -> bool
pub fn as_double(&self) -> Option<OrderedFloat<f64>>
pub fn is_decimal(&self) -> bool
pub fn as_decimal(&self) -> Option<Decimal>
pub fn is_integer(&self) -> bool
pub fn as_integer(&self) -> Option<i64>
pub fn is_unsigned(&self) -> bool
pub fn as_unsigned(&self) -> Option<u64>
pub fn is_string(&self) -> bool
pub fn as_string(&self) -> Option<&LanguageString>
pub fn is_iri(&self) -> bool
pub fn as_iri(&self) -> Option<&Url>
pub fn is_binary(&self) -> bool
pub fn as_binary(&self) -> Option<&Binary>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
source§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
source§impl From<IdentifierReference> for Value
impl From<IdentifierReference> for Value
source§fn from(v: IdentifierReference) -> Self
fn from(v: IdentifierReference) -> Self
Converts to this type from the input type.
source§impl From<LanguageString> for Value
impl From<LanguageString> for Value
source§fn from(v: LanguageString) -> Self
fn from(v: LanguageString) -> Self
Converts to this type from the input type.
source§impl From<MappingValue> for Value
impl From<MappingValue> for Value
source§fn from(v: MappingValue) -> Self
fn from(v: MappingValue) -> Self
Converts to this type from the input type.
source§impl From<OrderedFloat<f64>> for Value
impl From<OrderedFloat<f64>> for Value
source§fn from(v: OrderedFloat<f64>) -> Self
fn from(v: OrderedFloat<f64>) -> Self
Converts to this type from the input type.
source§impl From<SequenceOfValues> for Value
impl From<SequenceOfValues> for Value
source§fn from(v: SequenceOfValues) -> Self
fn from(v: SequenceOfValues) -> Self
Converts to this type from the input type.
source§impl From<SimpleValue> for Value
impl From<SimpleValue> for Value
source§fn from(v: SimpleValue) -> Self
fn from(v: SimpleValue) -> Self
Converts to this type from the input type.
source§impl From<ValueConstructor> for Value
impl From<ValueConstructor> for Value
source§fn from(v: ValueConstructor) -> Self
fn from(v: ValueConstructor) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more