pub enum Value<N: NestedValue> {
Boolean(bool),
Float(Float),
Double(Double),
SignedInteger(SignedInteger),
String(String),
ByteString(Vec<u8>),
Symbol(String),
Record(Record<N>),
Sequence(Vec<N>),
Set(Set<N>),
Dictionary(Map<N, N>),
Embedded(N::Embedded),
}
Expand description
The Value
s from the specification.
Variants
Boolean(bool)
Float(Float)
Double(Double)
SignedInteger(SignedInteger)
String(String)
ByteString(Vec<u8>)
Symbol(String)
Record(Record<N>)
Sequence(Vec<N>)
Set(Set<N>)
Dictionary(Map<N, N>)
Embedded(N::Embedded)
Implementations
Trait Implementations
Performs the conversion.
impl<N: PartialOrd + NestedValue> PartialOrd<Value<N>> for Value<N> where
N::Embedded: PartialOrd,
impl<N: PartialOrd + NestedValue> PartialOrd<Value<N>> for Value<N> where
N::Embedded: PartialOrd,
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<N> RefUnwindSafe for Value<N> where
N: RefUnwindSafe,
<N as NestedValue>::Embedded: RefUnwindSafe,
impl<N> UnwindSafe for Value<N> where
N: UnwindSafe + RefUnwindSafe,
<N as NestedValue>::Embedded: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more