pub trait ImportanceScorer: Send + Sync {
// Required method
fn score(&self, entry: &MemoryEntry) -> f32;
}Expand description
记忆重要性评估 trait
Required Methods§
Sourcefn score(&self, entry: &MemoryEntry) -> f32
fn score(&self, entry: &MemoryEntry) -> f32
计算记忆重要性分数 (0.0-1.0)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".