pub struct TokenCacheStats {
pub hits: u64,
pub misses: u64,
pub entries: usize,
pub text_bytes: usize,
}Expand description
Content-free counters for an instance-local token cache.
Fields§
§hits: u64Successful exact-text lookups.
misses: u64Requests sent to the underlying tokenizer, including bypasses and errors.
entries: usizeCurrent number of distinct entries.
text_bytes: usizeCurrent retained UTF-8 text bytes, excluding allocator/entry overhead.
Trait Implementations§
Source§impl Clone for TokenCacheStats
impl Clone for TokenCacheStats
impl Copy for TokenCacheStats
Source§impl Debug for TokenCacheStats
impl Debug for TokenCacheStats
Source§impl Default for TokenCacheStats
impl Default for TokenCacheStats
impl Eq for TokenCacheStats
Source§impl PartialEq for TokenCacheStats
impl PartialEq for TokenCacheStats
impl StructuralPartialEq for TokenCacheStats
Auto Trait Implementations§
impl Forget for TokenCacheStats
impl Freeze for TokenCacheStats
impl Move for TokenCacheStats
impl RefUnwindSafe for TokenCacheStats
impl Send for TokenCacheStats
impl Sync for TokenCacheStats
impl Unpin for TokenCacheStats
impl UnsafeUnpin for TokenCacheStats
impl UnwindSafe for TokenCacheStats
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