[−][src]Struct libprop_sat_solver::tableaux_solver::tableau::Tableau
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):
{ (a^b), a }
{ (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]
formula: PropositionalFormula
) -> Self
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,