pub struct Jinterners { /* private fields */ }Expand description
An arena to store interned JSON values.
Implementations§
Source§impl Jinterners
impl Jinterners
Sourcepub fn get_size_strings(&self) -> usize
Available on crate feature get-size2 only.
pub fn get_size_strings(&self) -> usize
get-size2 only.Gets the size in bytes of the underlying string arena.
Sourcepub fn get_size_arrays(&self) -> usize
Available on crate feature get-size2 only.
pub fn get_size_arrays(&self) -> usize
get-size2 only.Gets the size in bytes of the underlying array arena.
Sourcepub fn get_size_objects(&self) -> usize
Available on crate feature get-size2 only.
pub fn get_size_objects(&self) -> usize
get-size2 only.Gets the size in bytes of the underlying object arena.
Source§impl Jinterners
impl Jinterners
Sourcepub fn print_summary_strings(
&self,
prefix: &str,
title: &str,
total_bytes: usize,
)
Available on crate feature debug only.
pub fn print_summary_strings( &self, prefix: &str, title: &str, total_bytes: usize, )
debug only.Prints a summary of the storage used by the underlying string arena to stdout.
Sourcepub fn print_summary_arrays(
&self,
prefix: &str,
title: &str,
total_bytes: usize,
)
Available on crate feature debug only.
pub fn print_summary_arrays( &self, prefix: &str, title: &str, total_bytes: usize, )
debug only.Prints a summary of the storage used by the underlying array arena to stdout.
Sourcepub fn print_summary_objects(
&self,
prefix: &str,
title: &str,
total_bytes: usize,
)
Available on crate feature debug only.
pub fn print_summary_objects( &self, prefix: &str, title: &str, total_bytes: usize, )
debug only.Prints a summary of the storage used by the underlying object arena to stdout.
Trait Implementations§
Source§impl Debug for Jinterners
impl Debug for Jinterners
Source§impl Default for Jinterners
impl Default for Jinterners
Source§fn default() -> Jinterners
fn default() -> Jinterners
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Jinterners
impl<'de> Deserialize<'de> for Jinterners
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl GetSize for Jinterners
impl GetSize for Jinterners
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
Source§fn get_heap_size_with_tracker<TRACKER: GetSizeTracker>(
&self,
tracker: TRACKER,
) -> (usize, TRACKER)
fn get_heap_size_with_tracker<TRACKER: GetSizeTracker>( &self, tracker: TRACKER, ) -> (usize, TRACKER)
Determines how many bytes this object occupies inside the heap while using a
tracker. Read moreSource§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
Source§fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
Determines the total size of the object while using a
tracker. Read moreSource§impl PartialEq for Jinterners
impl PartialEq for Jinterners
Source§impl Serialize for Jinterners
impl Serialize for Jinterners
impl Eq for Jinterners
impl StructuralPartialEq for Jinterners
Auto Trait Implementations§
impl !Freeze for Jinterners
impl !RefUnwindSafe for Jinterners
impl Send for Jinterners
impl Sync for Jinterners
impl Unpin for Jinterners
impl UnwindSafe for Jinterners
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.