[][src]Struct rate_common::clause::LRATDependency

pub struct LRATDependency(_);

An intermediate representation of an LRAT hint

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

enum LRATDependency {
    Unit(Clause),
    ForcedUnit(Clause),
    ResolutionCandidate(Clause),
}

Methods

impl LRATDependency[src]

pub fn unit_in_inference(clause: Clause) -> LRATDependency[src]

Create a hint stating that the given clause became unit during the redundancy check.

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

Return true if this was a unit in the inference check.

pub fn forced_unit(clause: Clause) -> LRATDependency[src]

Create a hint stating that the given clause was unit even before the redundancy check.

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

Return true if this is a hint for a forced unit clause.

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

Create a hint referring to the given clause as resolution candidate.

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

Return true if this is a hint for a resolution candidate.

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

Return the clause referenced by this hint.

Trait Implementations

impl Clone for LRATDependency[src]

impl Copy for LRATDependency[src]

impl Default for LRATDependency[src]

impl Eq for LRATDependency[src]

impl Ord for LRATDependency[src]

impl PartialEq<LRATDependency> for LRATDependency[src]

impl PartialOrd<LRATDependency> for LRATDependency[src]

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