Trait libreda_logic::traits::BooleanSystem
source · pub trait BooleanSystem: PartialBooleanSystem {
// Required method
fn evaluate_term(&self, term: &Self::TermId, input_values: &[bool]) -> bool;
}
Expand description
A set of fully specified boolean formulas.
Required Methods§
sourcefn evaluate_term(&self, term: &Self::TermId, input_values: &[bool]) -> bool
fn evaluate_term(&self, term: &Self::TermId, input_values: &[bool]) -> bool
Compute the value of the term
.
The values of all needed literals must be defined by the input_values
function.
Implementors§
impl BooleanSystem for SmallTruthTable
impl<'a, N> BooleanSystem for RecursiveSim<'a, N>
impl<'a, T: BooleanSystem> BooleanSystem for OutputSelection<'a, T, T::TermId>
impl<F> BooleanSystem for F
Implement the boolean system for two-input boolean functions.