pub struct Explanation { /* private fields */ }Expand description
Collected explanation for the latest conflict or propagation round.
Implementations§
Source§impl Explanation
impl Explanation
Sourcepub fn branch_literals(&self) -> impl Iterator<Item = NogoodLiteral> + '_
pub fn branch_literals(&self) -> impl Iterator<Item = NogoodLiteral> + '_
Returns branch literals in chronological order.
Sourcepub fn propagator_conflict_literals(&self) -> Option<Vec<NogoodLiteral>>
pub fn propagator_conflict_literals(&self) -> Option<Vec<NogoodLiteral>>
Returns literals from the most recent propagator-recorded conflict, if any.
Sourcepub fn unique_branch_literals(&self) -> Vec<NogoodLiteral>
pub fn unique_branch_literals(&self) -> Vec<NogoodLiteral>
Returns unique branch literals, keeping the latest assignment per variable.
Source§impl Explanation
impl Explanation
Sourcepub fn entries(&self) -> &[ChangeReason]
pub fn entries(&self) -> &[ChangeReason]
Returns recorded change reasons.
Sourcepub fn record(&mut self, reason: ChangeReason)
pub fn record(&mut self, reason: ChangeReason)
Records a change reason.
Trait Implementations§
Source§impl Clone for Explanation
impl Clone for Explanation
Source§fn clone(&self) -> Explanation
fn clone(&self) -> Explanation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Explanation
impl Debug for Explanation
Source§impl Default for Explanation
impl Default for Explanation
Source§fn default() -> Explanation
fn default() -> Explanation
Returns the “default value” for a type. Read more
impl Eq for Explanation
Source§impl PartialEq for Explanation
impl PartialEq for Explanation
Source§fn eq(&self, other: &Explanation) -> bool
fn eq(&self, other: &Explanation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Explanation
Auto Trait Implementations§
impl Freeze for Explanation
impl RefUnwindSafe for Explanation
impl Send for Explanation
impl Sync for Explanation
impl Unpin for Explanation
impl UnsafeUnpin for Explanation
impl UnwindSafe for Explanation
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