Skip to main content

ForgettingPolicy

Trait ForgettingPolicy 

Source
pub trait ForgettingPolicy: Send + Sync {
    // Required method
    fn select(&self, facts: &[FactSummary], now: Millis) -> Vec<String>;

    // Provided method
    fn needs_text(&self) -> bool { ... }
}
Expand description

Chooses facts to remove. Default: KeepAll.

Required Methods§

Source

fn select(&self, facts: &[FactSummary], now: Millis) -> Vec<String>

Ids to forget, from the facts stored at now.

Provided Methods§

Source

fn needs_text(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§