pub enum Value {
Simple(SimpleValue),
ValueConstructor(ValueConstructor),
Mapping(MappingValue),
Reference(IdentifierReference),
Sequence(SequenceOfValues),
}
Expand description
Corresponds to the grammar rule value
.
Variants§
Simple(SimpleValue)
ValueConstructor(ValueConstructor)
Mapping(MappingValue)
Reference(IdentifierReference)
Sequence(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 const fn is_boolean(&self) -> bool
pub const fn as_boolean(&self) -> Option<bool>
pub const fn is_double(&self) -> bool
pub const fn as_double(&self) -> Option<OrderedFloat<f64>>
pub const fn is_decimal(&self) -> bool
pub const fn as_decimal(&self) -> Option<Decimal>
pub const fn is_integer(&self) -> bool
pub fn as_integer(&self) -> Option<i64>
pub const fn is_unsigned(&self) -> bool
pub const fn as_unsigned(&self) -> Option<u64>
pub const fn is_string(&self) -> bool
pub const fn as_string(&self) -> Option<&LanguageString>
pub const fn is_iri(&self) -> bool
pub const fn as_iri(&self) -> Option<&Url>
pub const fn is_binary(&self) -> bool
pub const 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<&Identifier> for Value
impl From<&Identifier> for Value
Source§fn from(value: &Identifier) -> Self
fn from(value: &Identifier) -> Self
Converts to this type from the input type.
Source§impl From<&IdentifierReference> for Value
impl From<&IdentifierReference> for Value
Source§fn from(value: &IdentifierReference) -> Self
fn from(value: &IdentifierReference) -> 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<&QualifiedIdentifier> for Value
impl From<&QualifiedIdentifier> for Value
Source§fn from(value: &QualifiedIdentifier) -> Self
fn from(value: &QualifiedIdentifier) -> 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<&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.
Source§impl From<Identifier> for Value
impl From<Identifier> for Value
Source§fn from(value: Identifier) -> Self
fn from(value: Identifier) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierReference> for Value
impl From<IdentifierReference> for Value
Source§fn from(value: IdentifierReference) -> Self
fn from(value: IdentifierReference) -> 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<QualifiedIdentifier> for Value
impl From<QualifiedIdentifier> for Value
Source§fn from(value: QualifiedIdentifier) -> Self
fn from(value: QualifiedIdentifier) -> 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<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 Freeze for Value
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