pub enum JsonState {
Start,
ObjectStart,
AfterKey,
AfterColon,
AfterValue,
InString,
ArrayStart,
Done,
}Expand description
Tracks the current position in JSON structure.
Variants§
Start
Before any output — expecting { or [.
ObjectStart
Inside an object, expecting a key (string) or }.
AfterKey
After a key, expecting :.
AfterColon
After :, expecting a value.
AfterValue
After a value, expecting , or } / ].
InString
Inside a string literal.
ArrayStart
Inside an array, expecting value or ].
Done
Generation complete (closing brace/bracket emitted).
Trait Implementations§
impl Copy for JsonState
impl Eq for JsonState
impl StructuralPartialEq for JsonState
Auto Trait Implementations§
impl Freeze for JsonState
impl RefUnwindSafe for JsonState
impl Send for JsonState
impl Sync for JsonState
impl Unpin for JsonState
impl UnsafeUnpin for JsonState
impl UnwindSafe for JsonState
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