pub struct Decisions {
pub queue: Vec<Decision>,
/* private fields */
}Fields§
§queue: Vec<Decision>Implementations§
Source§impl Decisions
impl Decisions
pub fn new(pool_size: usize) -> Decisions
pub fn decide( &mut self, literal: i64, level: i64, reason: usize, ) -> Result<(), SolverBug>
pub fn satisfy(&self, literal: i64) -> bool
pub fn conflict(&self, literal: i64) -> bool
pub fn decided(&self, literal_or_id: i64) -> bool
pub fn undecided(&self, literal_or_id: i64) -> bool
pub fn decided_install(&self, literal_or_id: i64) -> bool
pub fn decision_level(&self, literal_or_id: i64) -> i64
Sourcepub fn decision_rule(&self, literal_or_id: i64) -> Result<usize, SolverBug>
pub fn decision_rule(&self, literal_or_id: i64) -> Result<usize, SolverBug>
decisionRule: the rule of the first decision on this package.
pub fn at_offset(&self, offset: usize) -> Decision
pub fn valid_offset(&self, offset: usize) -> bool
pub fn last_reason(&self) -> usize
pub fn last_literal(&self) -> i64
Sourcepub fn reset_to_offset(&mut self, offset: i64)
pub fn reset_to_offset(&mut self, offset: i64)
resetToOffset($offset): keeps offset + 1 decisions.
pub fn revert_last(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decisions
impl RefUnwindSafe for Decisions
impl Send for Decisions
impl Sync for Decisions
impl Unpin for Decisions
impl UnsafeUnpin for Decisions
impl UnwindSafe for Decisions
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