pub enum JsonItemType {
Null,
False,
True,
String,
Number,
Object,
Array,
BlankLine,
LineComment,
BlockComment,
}Expand description
The type of a JSON element.
This enum represents the different types of items that can appear in JSON, including standard JSON types (null, boolean, string, number, object, array) and extended types for comment support (blank lines, comments).
This is primarily exposed for advanced use cases where you need to inspect the parsed structure. Most users won’t need to interact with this directly.
Variants§
Null
JSON null value.
False
JSON false boolean.
True
JSON true boolean.
String
A JSON string value.
Number
A JSON number value.
Object
A JSON object ({}).
Array
A JSON array ([]).
BlankLine
A blank line (when preserve_blank_lines is enabled).
LineComment
A line comment (// ...).
BlockComment
A block comment (/* ... */).
Trait Implementations§
Source§impl Clone for JsonItemType
impl Clone for JsonItemType
Source§fn clone(&self) -> JsonItemType
fn clone(&self) -> JsonItemType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonItemType
impl Debug for JsonItemType
Source§impl PartialEq for JsonItemType
impl PartialEq for JsonItemType
impl Copy for JsonItemType
impl Eq for JsonItemType
impl StructuralPartialEq for JsonItemType
Auto Trait Implementations§
impl Freeze for JsonItemType
impl RefUnwindSafe for JsonItemType
impl Send for JsonItemType
impl Sync for JsonItemType
impl Unpin for JsonItemType
impl UnwindSafe for JsonItemType
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