pub struct Solver { /* private fields */ }Expand description
A solver that was found.
Implementations§
Source§impl Solver
impl Solver
Sourcepub fn find() -> Option<Solver>
pub fn find() -> Option<Solver>
Look for a solver on PATH.
Returns nothing when there is none, which is what lets the tests skip rather than fail on a machine that has not got one. CI has one, and that is where the answer matters.
Sourcepub fn within(self, seconds: u32) -> Solver
pub fn within(self, seconds: u32) -> Solver
How long a single query may take before the answer is Answer::Unknown.
Sourcepub fn seconds(&self) -> u32
pub fn seconds(&self) -> u32
How long a rule is being given, for the same report.
A run that says what the budget was is a run whose shrug can be read. Without it, a rule reported as unproved is either a rule that is false or a rule that ran out of a number nobody printed, and telling those apart is the whole difficulty of tamnd/rucc#949.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Solver
impl RefUnwindSafe for Solver
impl Send for Solver
impl Sync for Solver
impl Unpin for Solver
impl UnsafeUnpin for Solver
impl UnwindSafe for Solver
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