Skip to main content

Jinterners

Struct Jinterners 

Source
pub struct Jinterners { /* private fields */ }
Expand description

An arena to store interned JSON values.

Implementations§

Source§

impl Jinterners

Source

pub fn get_size_strings(&self) -> usize

Available on crate feature get-size2 only.

Gets the size in bytes of the underlying string arena.

Source

pub fn get_size_arrays(&self) -> usize

Available on crate feature get-size2 only.

Gets the size in bytes of the underlying array arena.

Source

pub fn get_size_objects(&self) -> usize

Available on crate feature get-size2 only.

Gets the size in bytes of the underlying object arena.

Source§

impl Jinterners

Source

pub fn print_summary_strings( &self, prefix: &str, title: &str, total_bytes: usize, )

Available on crate feature debug only.

Prints a summary of the storage used by the underlying string arena to stdout.

Source

pub fn print_summary_arrays( &self, prefix: &str, title: &str, total_bytes: usize, )

Available on crate feature debug only.

Prints a summary of the storage used by the underlying array arena to stdout.

Source

pub fn print_summary_objects( &self, prefix: &str, title: &str, total_bytes: usize, )

Available on crate feature debug only.

Prints a summary of the storage used by the underlying object arena to stdout.

Trait Implementations§

Source§

impl Debug for Jinterners

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Jinterners

Source§

fn default() -> Jinterners

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Jinterners

Source§

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

Source§

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)

Determines how many bytes this object occupies inside the heap while using a tracker. Read more
Source§

fn get_stack_size() -> usize

Determines how may bytes this object occupies inside the stack. Read more
Source§

fn get_size(&self) -> usize

Determines the total size of the object. Read more
Source§

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 more
Source§

impl PartialEq for Jinterners

Source§

fn eq(&self, other: &Jinterners) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Jinterners

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for Jinterners

Source§

impl StructuralPartialEq for Jinterners

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,