pub struct TokenCacheLimits {
pub max_entries: usize,
pub max_text_bytes: usize,
}Expand description
Bounds for exact-text token memoization. Either zero limit disables caching.
Fields§
§max_entries: usizeMaximum distinct cached strings; also bounds map/queue overhead.
max_text_bytes: usizeMaximum retained UTF-8 payload bytes, excluding bounded entry/allocator overhead.
Trait Implementations§
Source§impl Clone for TokenCacheLimits
impl Clone for TokenCacheLimits
impl Copy for TokenCacheLimits
Source§impl Debug for TokenCacheLimits
impl Debug for TokenCacheLimits
Auto Trait Implementations§
impl Forget for TokenCacheLimits
impl Freeze for TokenCacheLimits
impl Move for TokenCacheLimits
impl RefUnwindSafe for TokenCacheLimits
impl Send for TokenCacheLimits
impl Sync for TokenCacheLimits
impl Unpin for TokenCacheLimits
impl UnsafeUnpin for TokenCacheLimits
impl UnwindSafe for TokenCacheLimits
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