pub struct SolverContext { /* private fields */ }Expand description
Opaque handle to a Minion solver context.
Holds solver state (including run statistics) after a solve completes.
Query results (e.g. via SolverContext::get_from_table) before dropping.
Implementations§
Source§impl SolverContext
impl SolverContext
Sourcepub fn get_from_table(&self, key: String) -> Option<String>
pub fn get_from_table(&self, key: String) -> Option<String>
Gets a value from Minion’s TableOut (where it stores run statistics).
Trait Implementations§
Source§impl Drop for SolverContext
impl Drop for SolverContext
impl Send for SolverContext
Auto Trait Implementations§
impl Freeze for SolverContext
impl RefUnwindSafe for SolverContext
impl !Sync for SolverContext
impl Unpin for SolverContext
impl UnsafeUnpin for SolverContext
impl UnwindSafe for SolverContext
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes