pub struct TopLevel {
pub insert_at: usize,
pub empty: bool,
pub keys: Vec<String>,
}Expand description
The located top level of a JSON object: where to splice injected fields, whether it already has members, and its decoded top-level key names.
Fields§
§insert_at: usizeByte offset just past the opening {, the splice insertion point.
empty: boolTrue if the object has no members ({}), no trailing comma on splice.
keys: Vec<String>Decoded top-level key names (escapes resolved), for collision checks.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TopLevel
impl RefUnwindSafe for TopLevel
impl Send for TopLevel
impl Sync for TopLevel
impl Unpin for TopLevel
impl UnsafeUnpin for TopLevel
impl UnwindSafe for TopLevel
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