pub enum TypedFieldValue {
F64(f64),
I64(i64),
I8(i8),
U8(u8),
I16(i16),
U16(u16),
I32(i32),
U32(u32),
U64(u64),
Bool(bool),
String(Arc<String>),
Heap(Arc<HeapValue>),
}Variants§
F64(f64)
I64(i64)
I8(i8)
U8(u8)
I16(i16)
U16(u16)
I32(i32)
U32(u32)
U64(u64)
Bool(bool)
String(Arc<String>)
String exception, named and bounded in ADR-005 §Decision §2.
Arc<String> is the runtime carrier (refcounted shared ownership);
not String (owned), not &str (borrowed), not StringId (interned).
Future interning layer (ADR-005 §5 Layer 3) coexists by deduplicating
the Arc-inner.
Heap(Arc<HeapValue>)
Single discriminator for all other heap types. Dispatch via
HeapValue::kind(). Per ADR-005 §1, no parallel sum types whose
variants project 1:1 to HeapKind.
Trait Implementations§
Source§impl Clone for TypedFieldValue
impl Clone for TypedFieldValue
Source§fn clone(&self) -> TypedFieldValue
fn clone(&self) -> TypedFieldValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TypedFieldValue
impl !RefUnwindSafe for TypedFieldValue
impl Send for TypedFieldValue
impl Sync for TypedFieldValue
impl Unpin for TypedFieldValue
impl UnsafeUnpin for TypedFieldValue
impl !UnwindSafe for TypedFieldValue
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