pub enum JsonEvent {
StartObject,
EndObject,
StartArray,
EndArray,
Key(String),
Str(String),
Number(String),
Bool(bool),
Null,
}Expand description
A structural event emitted by parse_json_events. Lets a
consumer build either the XDM map/array Value (fn:parse-json)
or the F&O JSON element vocabulary (fn:json-to-xml) from one
parser. Number carries the raw lexical so json-to-xml can
preserve the input’s number representation.
Variants§
StartObject
EndObject
StartArray
EndArray
Key(String)
Object member key (already unescaped per the escape option).
Str(String)
Number(String)
Bool(bool)
Null
Auto Trait Implementations§
impl Freeze for JsonEvent
impl RefUnwindSafe for JsonEvent
impl Send for JsonEvent
impl Sync for JsonEvent
impl Unpin for JsonEvent
impl UnsafeUnpin for JsonEvent
impl UnwindSafe for JsonEvent
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