Trait rational_deduction::rule::Rule [−][src]
Rule Trait
Required methods
Loading content...Provided methods
fn top(&self) -> <E::Group as IntoIteratorGen<E>>::IterGen
[src]
Returns a reference to the top element of the rule.
fn bot(&self) -> <E::Group as IntoIteratorGen<E>>::IterGen
[src]
Returns a reference to the bottom element of the rule.
fn eq<R>(&self, other: &R) -> bool where
E::Atom: PartialEq,
R: Rule<E>,
[src]
E::Atom: PartialEq,
R: Rule<E>,
Returns true
if two rules are equal.
fn clone(&self) -> Self where
Self: Sized,
E::Atom: Clone,
E::Group: FromIterator<E>,
[src]
Self: Sized,
E::Atom: Clone,
E::Group: FromIterator<E>,
Clones a rule.
fn new(top: E::Group, bot: E::Group) -> Self where
Self: Sized,
[src]
Self: Sized,
Builds a new Rule
from two groups.
fn default() -> Self where
Self: Sized,
[src]
Self: Sized,
Builds the default Rule
.
fn pair(self) -> (E::Group, E::Group) where
Self: Sized,
[src]
Self: Sized,
Returns the top and bottom element of the rule as a pair.
Implementors
impl<E> Rule<E> for Structure<E> where
E: Expression,
E::Group: FromIterator<E> + IntoIterator<Item = E>,
[src]
E: Expression,
E::Group: FromIterator<E> + IntoIterator<Item = E>,