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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.