pub enum Value {
Bool(bool),
Long(i64),
Double(TotalF64),
Instant(i64),
Uuid(u128),
Keyword(KwId),
Str(Arc<str>),
Bytes(Arc<[u8]>),
Ref(EntityId),
}Expand description
Core v1 Corium value types.
Variants§
Bool(bool)
Boolean.
Long(i64)
Signed 64-bit integer.
Double(TotalF64)
Totally ordered double.
Instant(i64)
Milliseconds since Unix epoch, UTC.
Uuid(u128)
128-bit UUID bytes represented as an integer.
Keyword(KwId)
Interned keyword.
Str(Arc<str>)
UTF-8 string.
Bytes(Arc<[u8]>)
Byte array.
Ref(EntityId)
Entity reference.
Implementations§
Trait Implementations§
Source§impl Encodable for Value
impl Encodable for Value
Source§fn encode_into(&self, out: &mut Vec<u8>)
fn encode_into(&self, out: &mut Vec<u8>)
Appends this value’s encoding to
out.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