pub struct StringPoolStats {
pub count: usize,
pub total_bytes: usize,
pub avg_length: f64,
pub min_length: usize,
pub max_length: usize,
pub memory_usage: usize,
}Expand description
Statistics about a string pool.
Fields§
§count: usizeNumber of unique strings.
total_bytes: usizeTotal bytes of string data.
avg_length: f64Average string length.
min_length: usizeMinimum string length.
max_length: usizeMaximum string length.
memory_usage: usizeTotal memory usage (approximate).
Trait Implementations§
Source§impl Clone for StringPoolStats
impl Clone for StringPoolStats
Source§fn clone(&self) -> StringPoolStats
fn clone(&self) -> StringPoolStats
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 StringPoolStats
impl Debug for StringPoolStats
Source§impl PartialEq for StringPoolStats
impl PartialEq for StringPoolStats
impl Copy for StringPoolStats
impl StructuralPartialEq for StringPoolStats
Auto Trait Implementations§
impl Freeze for StringPoolStats
impl RefUnwindSafe for StringPoolStats
impl Send for StringPoolStats
impl Sync for StringPoolStats
impl Unpin for StringPoolStats
impl UnsafeUnpin for StringPoolStats
impl UnwindSafe for StringPoolStats
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