pub struct LRATLiteral(/* private fields */);Expand description
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,
}Implementations§
Source§impl LRATLiteral
impl LRATLiteral
Sourcepub fn resolution_candidate(clause: Clause) -> LRATLiteral
pub fn resolution_candidate(clause: Clause) -> LRATLiteral
Create a hint for a resolution candidate.
Sourcepub fn is_resolution_candidate(self) -> bool
pub fn is_resolution_candidate(self) -> bool
Return true if this is refers to a resolution candidate.
Sourcepub fn hint(clause: Clause) -> LRATLiteral
pub fn hint(clause: Clause) -> LRATLiteral
Create a hint for a unit clause.
Sourcepub fn zero() -> LRATLiteral
pub fn zero() -> LRATLiteral
Create a zero terminator literal.
Trait Implementations§
Source§impl Clone for LRATLiteral
impl Clone for LRATLiteral
Source§fn clone(&self) -> LRATLiteral
fn clone(&self) -> LRATLiteral
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LRATLiteral
impl Debug for LRATLiteral
Source§impl Default for LRATLiteral
impl Default for LRATLiteral
Source§fn default() -> LRATLiteral
fn default() -> LRATLiteral
Returns the “default value” for a type. Read more
Source§impl Ord for LRATLiteral
impl Ord for LRATLiteral
Source§fn cmp(&self, other: &LRATLiteral) -> Ordering
fn cmp(&self, other: &LRATLiteral) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LRATLiteral
impl PartialEq for LRATLiteral
Source§impl PartialOrd for LRATLiteral
impl PartialOrd for LRATLiteral
impl Copy for LRATLiteral
impl Eq for LRATLiteral
impl StructuralPartialEq for LRATLiteral
Auto Trait Implementations§
impl Freeze for LRATLiteral
impl RefUnwindSafe for LRATLiteral
impl Send for LRATLiteral
impl Sync for LRATLiteral
impl Unpin for LRATLiteral
impl UnwindSafe for LRATLiteral
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HeapSpace for Twhere
T: Copy,
impl<T> HeapSpace for Twhere
T: Copy,
Source§fn heap_space(&self) -> usize
fn heap_space(&self) -> usize
The number of bytes allocated on the heap that this owns.