Trait RuleStore
pub trait RuleStore<A, P>: Default{
// Required methods
fn insert(&mut self, rule: Rc<Rule<P, A>>);
fn delete(&mut self, rule: &Rc<Rule<P, A>>);
fn clear(&mut self);
fn search<'a, 'b>(
&'a self,
rule: &'b Rc<Rule<P, A>>,
) -> impl Clone + DoubleEndedIterator
where A: 'a,
P: 'a;
}Expand description
Storage of rules.
Required Methods§
fn insert(&mut self, rule: Rc<Rule<P, A>>)
fn delete(&mut self, rule: &Rc<Rule<P, A>>)
fn clear(&mut self)
fn search<'a, 'b>(
&'a self,
rule: &'b Rc<Rule<P, A>>,
) -> impl Clone + DoubleEndedIteratorwhere
A: 'a,
P: 'a,
fn search<'a, 'b>(
&'a self,
rule: &'b Rc<Rule<P, A>>,
) -> impl Clone + DoubleEndedIteratorwhere
A: 'a,
P: 'a,
Return a clonable, sorted, double-ended iterator of rules that MAY overlap with the given rule.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.