pub struct SearchCache { /* private fields */ }Expand description
In-memory cache for search results, keyed by search ID.
Implementations§
Source§impl SearchCache
impl SearchCache
Sourcepub fn new() -> SearchCache
pub fn new() -> SearchCache
Create a new empty cache with default capacity (64 entries).
Sourcepub fn with_capacity(max_entries: usize) -> SearchCache
pub fn with_capacity(max_entries: usize) -> SearchCache
Create a new cache with the given maximum capacity.
Trait Implementations§
Source§impl Debug for SearchCache
impl Debug for SearchCache
Source§impl Default for SearchCache
impl Default for SearchCache
Source§fn default() -> SearchCache
fn default() -> SearchCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for SearchCache
impl !RefUnwindSafe for SearchCache
impl Send for SearchCache
impl Sync for SearchCache
impl Unpin for SearchCache
impl UnsafeUnpin for SearchCache
impl UnwindSafe for SearchCache
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