pub struct LRATDependency(/* private fields */);
Expand description
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),
}
Implementations§
Source§impl LRATDependency
impl LRATDependency
Sourcepub fn unit_in_inference(clause: Clause) -> LRATDependency
pub fn unit_in_inference(clause: Clause) -> LRATDependency
Create a hint stating that the given clause became unit during the redundancy check.
Sourcepub fn is_unit_in_inference(self) -> bool
pub fn is_unit_in_inference(self) -> bool
Return true if this was a unit in the inference check.
Sourcepub fn forced_unit(clause: Clause) -> LRATDependency
pub fn forced_unit(clause: Clause) -> LRATDependency
Create a hint stating that the given clause was unit even before the redundancy check.
Sourcepub fn is_forced_unit(self) -> bool
pub fn is_forced_unit(self) -> bool
Return true if this is a hint for a forced unit clause.
Sourcepub fn resolution_candidate(clause: Clause) -> LRATDependency
pub fn resolution_candidate(clause: Clause) -> LRATDependency
Create a hint referring to the given clause as resolution candidate.
Sourcepub fn is_resolution_candidate(self) -> bool
pub fn is_resolution_candidate(self) -> bool
Return true if this is a hint for a resolution candidate.
Trait Implementations§
Source§impl Clone for LRATDependency
impl Clone for LRATDependency
Source§fn clone(&self) -> LRATDependency
fn clone(&self) -> LRATDependency
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 LRATDependency
impl Debug for LRATDependency
Source§impl Default for LRATDependency
impl Default for LRATDependency
Source§fn default() -> LRATDependency
fn default() -> LRATDependency
Returns the “default value” for a type. Read more
Source§impl Ord for LRATDependency
impl Ord for LRATDependency
Source§fn cmp(&self, other: &LRATDependency) -> Ordering
fn cmp(&self, other: &LRATDependency) -> 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 LRATDependency
impl PartialEq for LRATDependency
Source§impl PartialOrd for LRATDependency
impl PartialOrd for LRATDependency
impl Copy for LRATDependency
impl Eq for LRATDependency
impl StructuralPartialEq for LRATDependency
Auto Trait Implementations§
impl Freeze for LRATDependency
impl RefUnwindSafe for LRATDependency
impl Send for LRATDependency
impl Sync for LRATDependency
impl Unpin for LRATDependency
impl UnwindSafe for LRATDependency
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.