pub trait TokenStore<B: Postings> {
// Required methods
fn atom(&self, pattern: &str) -> B;
fn universe(&self) -> B;
// Provided methods
fn numeric(&self, _field: &str, _op: &str, _value: f64) -> B { ... }
fn evidence(&self, token: &str, _min_bel: f64) -> B { ... }
fn s_path(&self, _a: &str, _b: &str, _s: usize) -> Option<B> { ... }
}Required Methods§
Provided Methods§
Sourcefn numeric(&self, _field: &str, _op: &str, _value: f64) -> B
fn numeric(&self, _field: &str, _op: &str, _value: f64) -> B
Situations whose numeric field satisfies field op value (op ∈ ge|gt|le|lt|eq|ne). Stores
without a numeric layer return empty.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".