pub struct ParseOptionsBuilder { /* private fields */ }
Expand description
Builder for ParseOptions
.
Implementations§
Source§impl ParseOptionsBuilder
impl ParseOptionsBuilder
Sourcepub fn var_order(&mut self, value: bool) -> &mut Self
pub fn var_order(&mut self, value: bool) -> &mut Self
Whether to parse a variable orders
The DIMACS satisfiability formats, for instance, do not natively support specifying a variable order, however it is not uncommon to use the comment lines for this purpose. But while some files may contain a variable order in the comment lines, others may use them for arbitrary comments. Hence, it may be desired to turn on parsing orders for some files and turn it off for other files.
Sourcepub fn clause_tree(&mut self, value: bool) -> &mut Self
pub fn clause_tree(&mut self, value: bool) -> &mut Self
Whether to parse a clause tree (for DIMACS CNF)
If the CNF contains, e.g., five clauses, and one of the comment lines
contains co [[0, 1], [2, 3, 4]]
, then the parsed circuit will have
three AND gates (one with clauses 0 and 1 as input, one with clauses
2, 3, and 4, as well as one with those two conjuncts).
Sourcepub fn check_acyclic(&mut self, value: bool) -> &mut Self
pub fn check_acyclic(&mut self, value: bool) -> &mut Self
Whether to check that the circuit is acyclic
The time complexity of this check is linear in the circuit’s size, and therefore rather inexpensive. Therefore, it is enabled by default.
Sourcepub fn build(&self) -> Result<ParseOptions, ParseOptionsBuilderError>
pub fn build(&self) -> Result<ParseOptions, ParseOptionsBuilderError>
Trait Implementations§
Source§impl Clone for ParseOptionsBuilder
impl Clone for ParseOptionsBuilder
Source§fn clone(&self) -> ParseOptionsBuilder
fn clone(&self) -> ParseOptionsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more