[][src]Struct varisat::binary::BinaryClauses

pub struct BinaryClauses {
    by_lit: Vec<Vec<Lit>>,
    count: usize,
}

Binary clauses.

Fields

by_lit: Vec<Vec<Lit>>count: usize

Methods

impl BinaryClauses[src]

pub fn set_var_count(&mut self, count: usize)[src]

Update structures for a new variable count.

pub fn add_binary_clause(&mut self, lits: [Lit; 2])[src]

Add a binary clause.

pub fn implied(&self, lit: Lit) -> &[Lit][src]

Implications of a given literal

pub fn count(&self) -> usize[src]

Number of binary clauses.

Trait Implementations

impl Default for BinaryClauses[src]

Auto Trait Implementations

impl Send for BinaryClauses

impl Sync for BinaryClauses

Blanket Implementations

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