pub struct MemoryStats {
pub string_count: usize,
pub total_string_bytes: usize,
pub index_overhead_bytes: usize,
pub hash_table_overhead_bytes: usize,
}Expand description
Memory usage statistics for a string interner.
Fields§
§string_count: usizeNumber of unique strings interned.
total_string_bytes: usizeTotal bytes used by string data.
index_overhead_bytes: usizeOverhead for the index vector.
hash_table_overhead_bytes: usizeOverhead for the hash table.
Implementations§
Source§impl MemoryStats
impl MemoryStats
Sourcepub fn total_bytes(&self) -> usize
pub fn total_bytes(&self) -> usize
Total memory usage in bytes.
Trait Implementations§
Source§impl Clone for MemoryStats
impl Clone for MemoryStats
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnsafeUnpin for MemoryStats
impl UnwindSafe for MemoryStats
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