[−][src]Struct rate_common::clause::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]
fn clone(&self) -> LRATLiteral
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LRATLiteral
[src]
impl Default for LRATLiteral
[src]
fn default() -> LRATLiteral
[src]
impl Eq for LRATLiteral
[src]
impl Ord for LRATLiteral
[src]
fn cmp(&self, other: &LRATLiteral) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<LRATLiteral> for LRATLiteral
[src]
fn eq(&self, other: &LRATLiteral) -> bool
[src]
fn ne(&self, other: &LRATLiteral) -> bool
[src]
impl PartialOrd<LRATLiteral> for LRATLiteral
[src]
fn partial_cmp(&self, other: &LRATLiteral) -> Option<Ordering>
[src]
fn lt(&self, other: &LRATLiteral) -> bool
[src]
fn le(&self, other: &LRATLiteral) -> bool
[src]
fn gt(&self, other: &LRATLiteral) -> bool
[src]
fn ge(&self, other: &LRATLiteral) -> bool
[src]
impl Debug for LRATLiteral
[src]
Auto Trait Implementations
impl Send for LRATLiteral
impl Sync for LRATLiteral
impl Unpin for LRATLiteral
impl UnwindSafe for LRATLiteral
impl RefUnwindSafe for LRATLiteral
Blanket Implementations
impl<T> HeapSpace for T where
T: Copy,
[src]
T: Copy,
fn heap_space(&Self) -> usize
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,