pub struct Solution { /* private fields */ }Expand description
A solver result holding instantiated variable values.
Implementations§
Source§impl Solution
impl Solution
Sourcepub fn get_int_var(&self, int_var: &IntVar<'_>) -> Option<i32>
pub fn get_int_var(&self, int_var: &IntVar<'_>) -> Option<i32>
Gets the value of an integer variable in this solution. :TODO: presently if the var is not instantiated in solution Java raise an exception Need to be added a new function in backend to check if the var is instantiated
Sourcepub fn get_bool_var(&self, bool_var: &BoolVar<'_>) -> Option<bool>
pub fn get_bool_var(&self, bool_var: &BoolVar<'_>) -> Option<bool>
Gets the value of a boolean variable in this solution. :TODO: presently if the var is not instantiated in solution Java raise an exception Need to be added a new function in backend to check if the var is instantiated
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl !Send for Solution
impl !Sync for Solution
impl Unpin for Solution
impl UnsafeUnpin for Solution
impl UnwindSafe for Solution
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