pub enum Value<'a> {
Bytes(&'a [u8]),
F64(f64),
I64(i64),
None,
Object(&'a Object<'a>),
String(&'a str),
U8(u8),
U32(u32),
U64(u64),
}Expand description
A schemaless runtime value parsed from a transit buffer.
Every variant is a primitive or a shared borrow, so Value is Copy and
Drop-free; it can be stored in a bump arena and discarded by resetting the
arena rather than by running destructors.
Variants§
Bytes(&'a [u8])
F64(f64)
I64(i64)
None
Object(&'a Object<'a>)
String(&'a str)
U8(u8)
U32(u32)
U64(u64)
Implementations§
Trait Implementations§
impl<'a> Copy for Value<'a>
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnsafeUnpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
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