[][src]Enum varisat::prop::graph::Reason

pub enum Reason {
    Unit,
    Binary([Lit; 1]),
    Long(ClauseRef),
}

Assignments that caused a propagation.

Variants

UnitBinary([Lit; 1])Long(ClauseRef)

Methods

impl Reason[src]

pub fn lits<'out, 'a, 'b>(
    &'a self,
    ctx: &'b Const<ClauseAllocP, Ref<'b, Context>>
) -> &'out [Lit] where
    'a: 'out,
    'b: 'out, 
[src]

The literals that caused the propagation.

pub fn is_unit(&self) -> bool[src]

True if a unit clause or assumption and not a propagation.

Trait Implementations

impl Eq for Reason[src]

impl PartialEq<Reason> for Reason[src]

impl Copy for Reason[src]

impl Clone for Reason[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Reason[src]

Auto Trait Implementations

impl Send for Reason

impl Sync for Reason

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