pub struct Clause {
pub index: ClauseIdentifierType,
}
Expand description
An index uniquely identifying a clause or lemma during the lifetime of the program
Fields§
§index: ClauseIdentifierType
Implementations§
Source§impl Clause
impl Clause
Sourcepub const MAX_ID: ClauseIdentifierType = 1_073_741_822u32
pub const MAX_ID: ClauseIdentifierType = 1_073_741_822u32
The maximum value a regular Clause
can assume.
Sourcepub const DOES_NOT_EXIST: Clause
pub const DOES_NOT_EXIST: Clause
We need one special value for deleted clauses that do not actually exist.
We cannot simply drop those deletions from the proof because sick-check
relies on the line in the proof.
Sourcepub const UNINITIALIZED: Clause
pub const UNINITIALIZED: Clause
A special value for clause IDs. Used in places where we are sure that the value is written before being used as an actual clause ID.
Sourcepub fn new(index: ClauseIdentifierType) -> Clause
pub fn new(index: ClauseIdentifierType) -> Clause
Sourcepub fn from_usize(index: usize) -> Clause
pub fn from_usize(index: usize) -> Clause
Create the clause index with the given usize ID.
§Panics
Panics if the index exceeds the internal limit.
Trait Implementations§
Source§impl AddAssign<u32> for Clause
impl AddAssign<u32> for Clause
Source§fn add_assign(&mut self, value: ClauseIdentifierType)
fn add_assign(&mut self, value: ClauseIdentifierType)
Performs the
+=
operation. Read moreSource§impl Ord for Clause
impl Ord for Clause
Source§impl PartialOrd for Clause
impl PartialOrd for Clause
Source§impl SubAssign<u32> for Clause
impl SubAssign<u32> for Clause
Source§fn sub_assign(&mut self, value: ClauseIdentifierType)
fn sub_assign(&mut self, value: ClauseIdentifierType)
Performs the
-=
operation. Read moreimpl Copy for Clause
impl Eq for Clause
impl StructuralPartialEq for Clause
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnwindSafe for Clause
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.