Answer

Struct Answer 

Source
pub struct Answer { /* private fields */ }
Expand description

What a run answered: the mode it ran, whether the formula has a model, the count, and the run’s record.

Implementations§

Source§

impl Answer

Source

pub fn mode(&self) -> Mode

The mode the run resolved to, from the header and the mode it was given.

Source

pub fn satisfiable(&self) -> bool

Whether the formula has a model. This is the run’s verdict, not read off the count: a zero weight, or weights that cancel, make the weighted count of a satisfiable formula zero.

Source

pub fn count(&self) -> &Count

The count: over every variable the formula declares, or over the c p show variables on the projected modes.

Source

pub fn diagram(&self) -> Option<&Tdd>

The compiled diagram, over every variable the formula declares, in the Mode::Compile mode; None in the counting modes, which count without keeping one. [tididi::io::save_tdd] writes it, as the binary’s --save-tdd does.

Source

pub fn stats(&self) -> &Stats

The run’s record: sizes, timings, which stage answered, as the binary’s --stats writes it.

Trait Implementations§

Source§

impl Debug for Answer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Answer

§

impl RefUnwindSafe for Answer

§

impl Send for Answer

§

impl Sync for Answer

§

impl Unpin for Answer

§

impl UnwindSafe for Answer

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.