pub struct InterningStats {
pub total_intern_calls: u64,
pub unique_strings: u64,
pub bytes_saved: u64,
}Expand description
Interning statistics.
Fields§
§total_intern_calls: u64§unique_strings: u64§bytes_saved: u64Implementations§
Source§impl InterningStats
impl InterningStats
pub fn new() -> Self
pub fn record_hit(&mut self, str_len: usize)
pub fn record_new(&mut self)
pub fn dedup_ratio(&self) -> f64
Trait Implementations§
Source§impl Debug for InterningStats
impl Debug for InterningStats
Source§impl Default for InterningStats
impl Default for InterningStats
Source§fn default() -> InterningStats
fn default() -> InterningStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InterningStats
impl RefUnwindSafe for InterningStats
impl Send for InterningStats
impl Sync for InterningStats
impl Unpin for InterningStats
impl UnsafeUnpin for InterningStats
impl UnwindSafe for InterningStats
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