pub struct MaskCacheConfig {
pub capacity: usize,
pub track_stats: bool,
}Expand description
Configuration for mask caching behavior.
Fields§
§capacity: usizeMaximum number of masks to cache per thread.
track_stats: boolEnable cache statistics tracking.
Implementations§
Source§impl MaskCacheConfig
impl MaskCacheConfig
Sourcepub fn short_context() -> Self
pub fn short_context() -> Self
Configuration optimized for short sequences (< 2K).
Sourcepub fn medium_context() -> Self
pub fn medium_context() -> Self
Configuration optimized for medium sequences (2K - 8K).
Sourcepub fn long_context() -> Self
pub fn long_context() -> Self
Configuration optimized for long sequences (8K - 32K).
Sourcepub fn ultra_long_context() -> Self
pub fn ultra_long_context() -> Self
Configuration optimized for ultra-long sequences (32K+). Uses more memory but ensures high cache hit rates.
Trait Implementations§
Source§impl Clone for MaskCacheConfig
impl Clone for MaskCacheConfig
Source§fn clone(&self) -> MaskCacheConfig
fn clone(&self) -> MaskCacheConfig
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 MaskCacheConfig
impl Debug for MaskCacheConfig
Auto Trait Implementations§
impl Freeze for MaskCacheConfig
impl RefUnwindSafe for MaskCacheConfig
impl Send for MaskCacheConfig
impl Sync for MaskCacheConfig
impl Unpin for MaskCacheConfig
impl UnwindSafe for MaskCacheConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more