[−][src]Struct varisat::clause::header::ClauseHeader
Metadata for a clause.
This is stored in a ClauseAlloc
and thus must have a representation
compatible with slice of LitIdx
values.
Fields
data: [LitIdx; 3]
Methods
impl ClauseHeader
[src]
pub fn new() -> ClauseHeader
[src]
Create a new clause header with default entries.
pub fn len(&self) -> usize
[src]
Length of the clause.
pub fn set_len(&mut self, length: usize)
[src]
Set the length of the clause.
Must be <= Var::max_count()
as each variable may only be present once per clause.
pub fn deleted(&self) -> bool
[src]
Whether the clause is marked as deleted.
pub fn set_deleted(&mut self, deleted: bool)
[src]
Mark the clause as deleted.
pub fn tier(&self) -> Tier
[src]
Current Tier
of the clause.
pub fn set_tier(&mut self, tier: Tier)
[src]
Set the current Tier
of the clause.
pub fn redundant(&self) -> bool
[src]
Whether the clause is redundant.
pub fn mark(&self) -> bool
[src]
Whether the clause is marked.
The mark is a temporary bit that can be set by various routines, but should always be reset to false.
pub fn set_mark(&mut self, mark: bool)
[src]
Mark or unmark the clause.
Make sure to clear the mark after use.
pub fn active(&self) -> bool
[src]
The clause's active flag
This is set when a clause was involved in conflict analysis and periodically reset.
pub fn set_active(&mut self, active: bool)
[src]
Set or reset the clause's active flag.
pub fn glue(&self) -> usize
[src]
The glue level.
pub fn set_glue(&mut self, glue: usize)
[src]
Update the glue level.
pub fn activity(&self) -> f32
[src]
Clause activity.
pub fn set_activity(&mut self, activity: f32)
[src]
Update clause activity.
Trait Implementations
impl Copy for ClauseHeader
[src]
impl Clone for ClauseHeader
[src]
fn clone(&self) -> ClauseHeader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for ClauseHeader
[src]
fn default() -> ClauseHeader
[src]
Auto Trait Implementations
impl Send for ClauseHeader
impl Sync for ClauseHeader
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference where
Inner: Part,
Outer: Part<PartType = Field<OuterFieldType>>,
OuterFieldType: HasPart<Inner, RawTarget = OuterFieldType> + PartialRefTarget + ?Sized,
Reference: HasPart<Outer> + ?Sized,
Inner: Part,
Outer: Part<PartType = Field<OuterFieldType>>,
OuterFieldType: HasPart<Inner, RawTarget = OuterFieldType> + PartialRefTarget + ?Sized,
Reference: HasPart<Outer> + ?Sized,
unsafe fn part_ptr(
ptr: *const <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::Ptr
ptr: *const <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::Ptr
unsafe fn part_ptr_mut(
ptr: *mut <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::PtrMut
ptr: *mut <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::PtrMut