[][src]Struct libprop_sat_solver::tableaux_solver::tableau::Tableau

pub struct Tableau { /* fields omitted */ }

A Tableau is a collection of Theory-ies. This corresponds to the entire propositional tableau tree, where each Theory is a branch (from the root node to each leaf).

For example, given the tableau (tree)

    (a^b)
    /   \
   a     b

There are two branches (hence two Theory-ies):

  1. { (a^b), a }
  2. { (a^b), b }

Methods

impl Tableau[src]

pub fn new() -> Self[src]

Construct a new Tableau with no theories.

pub fn from_starting_propositional_formula(
    formula: PropositionalFormula
) -> Self
[src]

Construct a Tableau with the starting root node being the given propositional formula.

pub fn is_empty(&self) -> bool[src]

Check if the Tableau contains no Theory-ies.

pub fn pop_theory(&mut self) -> Option<Theory>[src]

Retrieve a Theory from the Tableau.

pub fn push_theory(&mut self, theory: Theory)[src]

Add a Theory to the Tableau.

pub fn contains(&self, theory: &Theory) -> bool[src]

Check if the Tableau already contains the Theory.

Trait Implementations

impl Clone for Tableau[src]

impl Debug for Tableau[src]

impl PartialEq<Tableau> for Tableau[src]

impl StructuralPartialEq for Tableau[src]

Auto Trait Implementations

impl RefUnwindSafe for Tableau

impl Send for Tableau

impl Sync for Tableau

impl Unpin for Tableau

impl UnwindSafe for Tableau

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.