[][src]Struct varisat::clause::header::ClauseHeader

#[repr(transparent)]
pub struct ClauseHeader { pub(super) data: [LitIdx; 3], }

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_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for ClauseHeader[src]

Auto Trait Implementations

impl Send for ClauseHeader

impl Sync for ClauseHeader

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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