[][src]Struct rate_common::clause::LRATLiteral

pub struct LRATLiteral(_);

A literal in the LRAT proof output

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

enum LRATLiteral {
    ResolutionCandidate(Clause),
    Hint(Clause),
    Zero,
}

Methods

impl LRATLiteral[src]

pub fn resolution_candidate(clause: Clause) -> LRATLiteral[src]

Create a hint for a resolution candidate.

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

Return true if this is refers to a resolution candidate.

pub fn hint(clause: Clause) -> LRATLiteral[src]

Create a hint for a unit clause.

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

Return true if this is a unit clause hint.

pub fn zero() -> LRATLiteral[src]

Create a zero terminator literal.

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

Return true if this is a zero terminator.

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

Assuming this is not a zero terminator, return the referenced clause.

Trait Implementations

impl Clone for LRATLiteral[src]

impl Copy for LRATLiteral[src]

impl Default for LRATLiteral[src]

impl Eq for LRATLiteral[src]

impl Ord for LRATLiteral[src]

impl PartialEq<LRATLiteral> for LRATLiteral[src]

impl PartialOrd<LRATLiteral> for LRATLiteral[src]

impl Debug for LRATLiteral[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]