pub struct CurrentState<'a> {
pub latest_key: &'a str,
pub nth_occurrence: usize,
pub level: f32,
pub current_item: &'a Item,
pub is_key: bool,
}Fields§
§latest_key: &'a strlatest_key is the latest key seen in the current position
nth_occurrence: usizenth_occurrence is the index of the current item (key or value) in json
level: f32level: f32 is the level of the current position. Please check out next_item_by_level() docs
current_item: &'a Itemcurrent_item is the current scanned which is Item(ValueType, value as string)
is_key: boolis_key: bool, determines if the current item is a key or value
Auto Trait Implementations§
impl<'a> Freeze for CurrentState<'a>
impl<'a> RefUnwindSafe for CurrentState<'a>
impl<'a> Send for CurrentState<'a>
impl<'a> Sync for CurrentState<'a>
impl<'a> Unpin for CurrentState<'a>
impl<'a> UnwindSafe for CurrentState<'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