pub enum Value {
}Expand description
A Soil value.
Scalars are stored inline; everything else is behind a Ref, so
clone is at most a refcount bump. Bool is deliberately absent: it
is the prelude sum True | False (design §3.12 / plan 01), which the
registry pre-registers and the JSON layer special-cases.
Variants§
I64(i64)
U64(u64)
I32(i32)
U32(u32)
I16(i16)
U16(u16)
I8(i8)
U8(u8)
F64(f64)
BigInt(Ref<BigInt>)
Utf8(Ref<str>)
Bytes(Ref<[u8]>)
Unit
Record(Ref<Record>)
Sum(Ref<SumVal>)
List(Ref<Vec<Value>>)
Map(Ref<MapVal>)
Closure(Ref<Closure>)
Opaque(Ref<OpaqueVal>)
Trait Implementations§
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