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
impl Answer
Sourcepub fn mode(&self) -> Mode
pub fn mode(&self) -> Mode
The mode the run resolved to, from the header and the mode it was given.
Sourcepub fn satisfiable(&self) -> bool
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.
Sourcepub fn count(&self) -> &Count
pub fn count(&self) -> &Count
The count: over every variable the formula declares, or over the
c p show variables on the projected modes.
Sourcepub fn diagram(&self) -> Option<&Tdd>
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.
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more