[][src]Struct rate_common::clause::ProofStep

pub struct ProofStep(_);

A clause introduction or deletion

This is essentially this enum, but we pack everything into 32 bits.

enum ProofStep {
    Lemma(Clause),
    Deletion(Clause),
}

Methods

impl ProofStep[src]

pub fn lemma(clause: Clause) -> ProofStep[src]

Create a proof step that introduces the given clause.

pub fn deletion(clause: Clause) -> ProofStep[src]

Create a proof step that deletes the given clause.

pub fn is_deletion(self) -> bool[src]

Return true if this proof step is a clause deletion.

pub fn clause(self) -> Clause[src]

Return the clause that this proof step introduces or deletes.

Trait Implementations

impl Clone for ProofStep[src]

impl Copy for ProofStep[src]

impl Default for ProofStep[src]

impl Eq for ProofStep[src]

impl PartialEq<ProofStep> for ProofStep[src]

impl Debug for ProofStep[src]

Auto Trait Implementations

Blanket Implementations

impl<T> HeapSpace for T where
    T: Copy
[src]

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

impl<T> From<T> for 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.

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

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

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