pub enum Value {
Null,
Boolean(bool),
Integer(i64),
String(String),
Bytes(Vec<u8>),
Array(Vec<Self>),
Object(BTreeMap<String, Self>),
}Expand description
Canonical structured value used by the deterministic reference executor.
Variant declaration order is the normative cross-type sort order. Binary floating point is intentionally absent.
Variants§
Null
Explicit null.
Boolean(bool)
Boolean value.
Integer(i64)
Signed 64-bit integer.
String(String)
UTF-8 string.
Bytes(Vec<u8>)
Opaque binary bytes.
Array(Vec<Self>)
Ordered array.
Object(BTreeMap<String, Self>)
Object ordered by UTF-8 field name.
Trait Implementations§
impl Eq for Value
Source§impl Ord for Value
impl Ord for Value
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Value
impl PartialOrd for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin 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