pub enum PruneStrategy {
OldestFirst,
LowestRelevance,
Hybrid,
}Expand description
Strategy for pruning context DAG.
Variants§
OldestFirst
Remove oldest entries first
LowestRelevance
Remove lowest relevance entries first
Hybrid
Hybrid approach combining age and relevance
Trait Implementations§
Source§impl Clone for PruneStrategy
impl Clone for PruneStrategy
Source§fn clone(&self) -> PruneStrategy
fn clone(&self) -> PruneStrategy
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 PruneStrategy
impl Debug for PruneStrategy
Source§impl<'de> Deserialize<'de> for PruneStrategy
impl<'de> Deserialize<'de> for PruneStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for PruneStrategy
impl Hash for PruneStrategy
Source§impl PartialEq for PruneStrategy
impl PartialEq for PruneStrategy
Source§impl Serialize for PruneStrategy
impl Serialize for PruneStrategy
impl Copy for PruneStrategy
impl Eq for PruneStrategy
impl StructuralPartialEq for PruneStrategy
Auto Trait Implementations§
impl Freeze for PruneStrategy
impl RefUnwindSafe for PruneStrategy
impl Send for PruneStrategy
impl Sync for PruneStrategy
impl Unpin for PruneStrategy
impl UnwindSafe for PruneStrategy
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.