pub struct Model<'ctx> { /* private fields */ }
Expand description
Model for the constraints inserted into the logical context.
Implementations§
Source§impl<'ctx> Model<'ctx>
impl<'ctx> Model<'ctx>
pub fn of_solver(slv: &Solver<'ctx>) -> Option<Model<'ctx>>
pub fn of_optimize(opt: &Optimize<'ctx>) -> Option<Model<'ctx>>
Sourcepub fn translate<'dest_ctx>(&self, dest: &'dest_ctx Context) -> Model<'dest_ctx>
pub fn translate<'dest_ctx>(&self, dest: &'dest_ctx Context) -> Model<'dest_ctx>
Translate model to context dest
Sourcepub fn get_const_interp<T: Ast<'ctx>>(&self, ast: &T) -> Option<T>
pub fn get_const_interp<T: Ast<'ctx>>(&self, ast: &T) -> Option<T>
Returns the interpretation of the given ast
in the Model
Returns None
if there is no interpretation in the Model
Sourcepub fn get_func_interp(&self, f: &FuncDecl<'_>) -> Option<FuncInterp<'ctx>>
pub fn get_func_interp(&self, f: &FuncDecl<'_>) -> Option<FuncInterp<'ctx>>
Returns the interpretation of the given f
in the Model
Returns None
if there is no interpretation in the Model
pub fn eval<T>(&self, ast: &T, model_completion: bool) -> Option<T>where
T: Ast<'ctx>,
pub fn iter(&'ctx self) -> ModelIter<'ctx>
Trait Implementations§
Source§impl<'ctx> IntoIterator for &'ctx Model<'ctx>
impl<'ctx> IntoIterator for &'ctx Model<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for Model<'ctx>
impl<'ctx> RefUnwindSafe for Model<'ctx>
impl<'ctx> !Send for Model<'ctx>
impl<'ctx> !Sync for Model<'ctx>
impl<'ctx> Unpin for Model<'ctx>
impl<'ctx> UnwindSafe for Model<'ctx>
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