pub enum JsonValue<'a> {
Raw(&'a [u8]),
String(&'a str),
Number(&'a [u8]),
Bool(bool),
Null,
Array(LazyArray<'a>),
Object(LazyObject<'a>),
}
Expand description
Zero-copy JSON value representation
Variants§
Raw(&'a [u8])
Raw bytes slice (not parsed yet)
String(&'a str)
Parsed string (zero-copy)
Number(&'a [u8])
Number stored as bytes for lazy parsing
Bool(bool)
Boolean value
Null
Null value
Array(LazyArray<'a>)
Array with lazy evaluation
Object(LazyObject<'a>)
Object with lazy evaluation
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for JsonValue<'a>
impl<'a> RefUnwindSafe for JsonValue<'a>
impl<'a> Send for JsonValue<'a>
impl<'a> Sync for JsonValue<'a>
impl<'a> Unpin for JsonValue<'a>
impl<'a> UnwindSafe for JsonValue<'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