TruthTable

Trait TruthTable 

Source
pub trait TruthTable: PartialTruthTable + BooleanFunction {
    // Required method
    fn get_bit(&self, input_bits: u64) -> bool;

    // Provided method
    fn size(&self) -> usize { ... }
}
Expand description

Abstraction for accessing and evaluating a truth-table.

Required Methods§

Source

fn get_bit(&self, input_bits: u64) -> bool

Get a truth-table bit. Evaluate the boolean function with the given input bits encoded in an integer. The first bit is in the least significant bit.

Provided Methods§

Source

fn size(&self) -> usize

Get the number of entries in this table.

Implementors§

Source§

impl TruthTable for SmallTruthTable

Source§

impl<const NUM_INPUTS: usize> TruthTable for SmallStaticTruthTable<NUM_INPUTS>