[][src]Struct varisat::model::Model

pub struct Model {
    assignment: Vec<Option<bool>>,
}

Global model reconstruction

Fields

assignment: Vec<Option<bool>>

Assignment of the global model.

Whenever the solver state is SAT this must be up to date.

Methods

impl Model[src]

pub fn assignment(&self) -> &[Option<bool>][src]

Assignment of the global model.

Only valid if the solver state is SAT.

pub fn lit_is_true(&self, global_lit: Lit) -> bool[src]

Whether a given global literal is true in the model assignment.

Only valid if the solver state is SAT.

Trait Implementations

impl Default for Model[src]

Auto Trait Implementations

impl Send for Model

impl Sync for Model

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