pub trait RuleSpace<Q, S>where
Q: RawState,{
// Required methods
fn get(&self, head: &Head<Q, S>) -> Option<&Tail<Q, S>>
where Q: PartialEq,
S: PartialEq;
fn get_mut(&mut self, head: &Head<Q, S>) -> Option<&mut Tail<Q, S>>
where Q: PartialEq,
S: PartialEq;
fn insert(&mut self, head: Head<Q, S>, tail: Tail<Q, S>);
}Expand description
Required Methods§
Sourcefn get(&self, head: &Head<Q, S>) -> Option<&Tail<Q, S>>
fn get(&self, head: &Head<Q, S>) -> Option<&Tail<Q, S>>
returns the tail associated with the provided head, if it exists