pub struct Model { /* private fields */ }Expand description
Model for the constraints inserted into the logical context.
Implementations§
Source§impl Model
impl Model
pub fn of_solver(slv: &Solver) -> Option<Model>
pub fn of_optimize(opt: &Optimize) -> Option<Model>
Sourcepub fn get_const_interp<T: Ast>(&self, ast: &T) -> Option<T>
pub fn get_const_interp<T: Ast>(&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>
pub fn get_func_interp(&self, f: &FuncDecl) -> Option<FuncInterp>
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,
pub fn iter<'a>(&'a self) -> ModelIter<'a>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl !Send for Model
impl !Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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