pub struct ImplicationGraph { /* private fields */ }Expand description
Implication graph for conflict analysis.
Implementations§
Source§impl ImplicationGraph
impl ImplicationGraph
Sourcepub fn add_node(
&mut self,
var: TermId,
value: bool,
level: usize,
reason: Option<ClauseId>,
is_decision: bool,
)
pub fn add_node( &mut self, var: TermId, value: bool, level: usize, reason: Option<ClauseId>, is_decision: bool, )
Add a node to the graph.
Sourcepub fn is_decision(&self, var: TermId) -> bool
pub fn is_decision(&self, var: TermId) -> bool
Check if a variable is a decision.
Sourcepub fn get_reason(&self, var: TermId) -> Option<ClauseId>
pub fn get_reason(&self, var: TermId) -> Option<ClauseId>
Get reason clause for a variable.
Trait Implementations§
Source§impl Clone for ImplicationGraph
impl Clone for ImplicationGraph
Source§fn clone(&self) -> ImplicationGraph
fn clone(&self) -> ImplicationGraph
Returns a duplicate of the value. Read more
1.0.0 · 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 ImplicationGraph
impl Debug for ImplicationGraph
Auto Trait Implementations§
impl Freeze for ImplicationGraph
impl RefUnwindSafe for ImplicationGraph
impl Send for ImplicationGraph
impl Sync for ImplicationGraph
impl Unpin for ImplicationGraph
impl UnwindSafe for ImplicationGraph
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more