pub enum Event<'a, 'b> {
StartObject,
EndObject,
StartArray,
EndArray,
Key(String<'a, 'b>),
String(String<'a, 'b>),
Number(JsonNumber<'a, 'b>),
Bool(bool),
Null,
EndDocument,
}Expand description
Events produced by JSON parsers
Variants§
StartObject
The start of an object (e.g., {).
EndObject
The end of an object (e.g., }).
StartArray
The start of an array (e.g., [).
EndArray
The end of an array (e.g., ]).
Key(String<'a, 'b>)
An object key (e.g., "key":).
String(String<'a, 'b>)
A string value (e.g., "value").
Number(JsonNumber<'a, 'b>)
A number value (e.g., 42 or 3.14).
Bool(bool)
A boolean value (e.g., true or false).
Null
A null value (e.g., null).
EndDocument
End of the document.
Trait Implementations§
impl<'a, 'b> StructuralPartialEq for Event<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for Event<'a, 'b>
impl<'a, 'b> RefUnwindSafe for Event<'a, 'b>
impl<'a, 'b> Send for Event<'a, 'b>
impl<'a, 'b> Sync for Event<'a, 'b>
impl<'a, 'b> Unpin for Event<'a, 'b>
impl<'a, 'b> UnwindSafe for Event<'a, 'b>
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