pub struct SolveJob { /* private fields */ }Expand description
A resumable solve.
Implementations§
Source§impl SolveJob
impl SolveJob
Sourcepub fn new(problem: Problem, opts: SolveOptions) -> Self
pub fn new(problem: Problem, opts: SolveOptions) -> Self
Prepare a job. Values of problem.vars are the starting point and the
“stay near” reference.
Sourcepub fn cancel(&mut self)
pub fn cancel(&mut self)
Request cancellation. The next SolveJob::step returns Finished.
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Whether all work is done.
Sourcepub fn peek_status(&self) -> Status
pub fn peek_status(&self) -> Status
Aggregate status of the components finished so far (meaningful once
SolveJob::is_finished is true).
Sourcepub fn into_solution(self) -> Solution
pub fn into_solution(self) -> Solution
Finish the job (running remaining work unless cancelled) and return the result.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SolveJob
impl RefUnwindSafe for SolveJob
impl Send for SolveJob
impl Sync for SolveJob
impl Unpin for SolveJob
impl UnsafeUnpin for SolveJob
impl UnwindSafe for SolveJob
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.