struct _ReplacingContext {
var_to_smt: HashMap<Variable, SMTExpr>,
param: Rc<HashMap<Parameter, SMTExpr>>,
}Expand description
This context allows to use a custom SMT expression instead of a variable when encoding expressions into SMT
Fields§
§var_to_smt: HashMap<Variable, SMTExpr>§param: Rc<HashMap<Parameter, SMTExpr>>Implementations§
Trait Implementations§
Source§impl SMTVariableContext<Parameter> for _ReplacingContext
impl SMTVariableContext<Parameter> for _ReplacingContext
Source§fn get_expr_for(&self, expr: &Parameter) -> Result<SMTExpr, SMTSolverError>
fn get_expr_for(&self, expr: &Parameter) -> Result<SMTExpr, SMTSolverError>
Source§fn get_exprs<'a>(&'a self) -> impl IntoIterator<Item = &'a Parameter>where
Parameter: 'a,
fn get_exprs<'a>(&'a self) -> impl IntoIterator<Item = &'a Parameter>where
Parameter: 'a,
Get all expressions for which the current context holds an assignment
Source§impl SMTVariableContext<Variable> for _ReplacingContext
impl SMTVariableContext<Variable> for _ReplacingContext
Source§fn get_expr_for(&self, expr: &Variable) -> Result<SMTExpr, SMTSolverError>
fn get_expr_for(&self, expr: &Variable) -> Result<SMTExpr, SMTSolverError>
Source§fn get_exprs<'a>(&'a self) -> impl IntoIterator<Item = &'a Variable>where
Variable: 'a,
fn get_exprs<'a>(&'a self) -> impl IntoIterator<Item = &'a Variable>where
Variable: 'a,
Get all expressions for which the current context holds an assignment
Auto Trait Implementations§
impl Freeze for _ReplacingContext
impl RefUnwindSafe for _ReplacingContext
impl !Send for _ReplacingContext
impl !Sync for _ReplacingContext
impl Unpin for _ReplacingContext
impl UnwindSafe for _ReplacingContext
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> 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