#[repr(C)]pub struct yyjson_doc {
pub root: *mut yyjson_val,
pub alc: yyjson_alc,
pub dat_read: usize,
pub val_read: usize,
pub str_pool: *mut c_char,
}
Fields§
§root: *mut yyjson_val
Root value of the document (nonnull).
alc: yyjson_alc
Allocator used by document (nonnull).
dat_read: usize
The total number of bytes read when parsing JSON (nonzero).
val_read: usize
The total number of value read when parsing JSON (nonzero).
str_pool: *mut c_char
The string pool used by JSON values (nullable).
Trait Implementations§
Source§impl Clone for yyjson_doc
impl Clone for yyjson_doc
Source§fn clone(&self) -> yyjson_doc
fn clone(&self) -> yyjson_doc
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 yyjson_doc
impl Debug for yyjson_doc
impl Copy for yyjson_doc
Auto Trait Implementations§
impl Freeze for yyjson_doc
impl RefUnwindSafe for yyjson_doc
impl !Send for yyjson_doc
impl !Sync for yyjson_doc
impl Unpin for yyjson_doc
impl UnwindSafe for yyjson_doc
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