pub struct Model<V> { /* private fields */ }
Expand description
The of successfully solving an encoded problem.
Implementations§
Source§impl<V: SatVar> Model<V>
impl<V: SatVar> Model<V>
Sourcepub fn vars(&self) -> impl Iterator<Item = Lit<V>> + Clone + '_
pub fn vars(&self) -> impl Iterator<Item = Lit<V>> + Clone + '_
Returns an interator over assigned literals of user defined SAT variables.
Sourcepub fn all_vars(&self) -> impl Iterator<Item = VarType<V>> + Clone + '_
pub fn all_vars(&self) -> impl Iterator<Item = VarType<V>> + Clone + '_
Returns an interator over all defined variables. This includes unnamed variables used by various constraints.
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Model<V>
impl<V> RefUnwindSafe for Model<V>where
V: RefUnwindSafe,
impl<V> Send for Model<V>where
V: Send,
impl<V> Sync for Model<V>where
V: Sync,
impl<V> Unpin for Model<V>where
V: Unpin,
impl<V> UnwindSafe for Model<V>where
V: UnwindSafe,
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