RuleSpace

Trait RuleSpace 

Source
pub trait RuleSpace<Q, S>: RawSpace
where Q: RawState,
{ // Required method fn get(&self, head: &Head<Q, S>) -> Option<&Tail<Q, S>> where Q: PartialEq, S: PartialEq; }

Required Methods§

Source

fn get(&self, head: &Head<Q, S>) -> Option<&Tail<Q, S>>
where Q: PartialEq, S: PartialEq,

Implementations on Foreign Types§

Source§

impl<Q, A> RuleSpace<Q, A> for Vec<Rule<Q, A>>
where Q: RawState + PartialEq, A: PartialEq,

Source§

fn get(&self, key: &Head<Q, A>) -> Option<&Tail<Q, A>>

Source§

impl<Q, A> RuleSpace<Q, A> for HashMap<Head<Q, A>, Tail<Q, A>>
where Q: RawState + Eq + Hash, A: Eq + Hash,

Source§

fn get(&self, key: &Head<Q, A>) -> Option<&Tail<Q, A>>

Implementors§