Trait SolverProvider
pub trait SolverProvider: Send + Sync {
type Solver<'a>: SmtSolver<'a>;
// Required method
fn with_solver<T>(&self, f: impl FnOnce(Self::Solver<'_>) -> T) -> T;
}
Expand description
Provides SmtSolver
s without having to know all of the configuration details of the individual solvers.
Required Associated Types§
Required Methods§
fn with_solver<T>(&self, f: impl FnOnce(Self::Solver<'_>) -> T) -> T
fn with_solver<T>(&self, f: impl FnOnce(Self::Solver<'_>) -> T) -> T
Runs the function f
with a provided solver.
Object Safety§
This trait is not object safe.