pub enum Value {
Simple(SimpleValue),
ValueConstructor(ValueConstructor),
Reference(IdentifierReference),
Mapping(MappingValue),
List(ListOfValues),
}
Expand description
Corresponds to the grammar rule value
.
Variants§
Simple(SimpleValue)
ValueConstructor(ValueConstructor)
Reference(IdentifierReference)
Mapping(MappingValue)
List(ListOfValues)
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<ListOfValues> for Value
impl From<ListOfValues> for Value
source§fn from(v: ListOfValues) -> Self
fn from(v: ListOfValues) -> 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<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