pub enum MapCacheKey {
Files(FilesKey),
Auto(AutoKey),
}Expand description
Cache key for map cache (SPEC §11).
Different modes use different key structures:
- Auto mode: 5-tuple (chat, other, max_tokens, mentioned_fnames, mentioned_idents)
- Files mode: 3-tuple (chat, other, max_tokens)
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for MapCacheKey
impl Clone for MapCacheKey
Source§fn clone(&self) -> MapCacheKey
fn clone(&self) -> MapCacheKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MapCacheKey
impl Debug for MapCacheKey
impl Eq for MapCacheKey
Source§impl Hash for MapCacheKey
impl Hash for MapCacheKey
Source§impl PartialEq for MapCacheKey
impl PartialEq for MapCacheKey
Source§fn eq(&self, other: &MapCacheKey) -> bool
fn eq(&self, other: &MapCacheKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MapCacheKey
Auto Trait Implementations§
impl Freeze for MapCacheKey
impl RefUnwindSafe for MapCacheKey
impl Send for MapCacheKey
impl Sync for MapCacheKey
impl Unpin for MapCacheKey
impl UnsafeUnpin for MapCacheKey
impl UnwindSafe for MapCacheKey
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.