Struct clingo::SolveControl
[−]
[src]
pub struct SolveControl(_);
Object to add clauses during search.
Methods
impl SolveControl
[src]
pub fn add_clause(&mut self, clause: &[Literal]) -> Result<(), ClingoError>
[src]
Add a clause that applies to the current solving step during model enumeration.
Note: The Propagator
trait provides a more sophisticated
interface to add clauses - even on partial assignments.
Arguments
clause
- array of literals representing the clause
Errors
ErrorType::BadAlloc
ErrorType::Runtime
if adding the clause fails
pub fn symbolic_atoms(&mut self) -> Option<&SymbolicAtoms>
[src]
Get an object to inspect the symbolic atoms.
Trait Implementations
impl Debug for SolveControl
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for SolveControl
[src]
impl Clone for SolveControl
[src]
fn clone(&self) -> SolveControl
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more