pub struct Config {Show 21 fields
pub rewriter: Rewriter,
pub comprehension_expander: QuantifiedExpander,
pub solver: SolverFamily,
pub extra_rule_sets: Vec<String>,
pub heuristic: Heuristic,
pub seed: u64,
pub responses: Vec<usize>,
pub channelling: Channelling,
pub amo_encoding: Option<AmoEncoding>,
pub cardinality_encoding: Option<CardinalityEncoding>,
pub pb_encoding: Option<PbEncoding>,
pub element_encoding: Option<ElementEncoding>,
pub table_encoding: Option<TableEncoding>,
pub alldifferent_encoding: Option<AllDifferentEncoding>,
pub minion_discrete_threshold: Option<usize>,
pub minion_varorder: Option<MinionVariableOrder>,
pub minion_valorder: Option<MinionValueOrder>,
pub sat_backend: SatBackend,
pub solver_seed: u32,
pub solver_timeout: Option<Duration>,
pub trace: TraceConfig,
}Expand description
Modelling and solver options shared by library callers and the CLI.
Fields§
§rewriter: RewriterRewrite engine configuration.
comprehension_expander: QuantifiedExpanderStrategy for expanding comprehensions.
solver: SolverFamilyTarget solver family.
extra_rule_sets: Vec<String>Additional registered rule sets, alongside the defaults and solver rules.
heuristic: HeuristicStrategy for modelling decisions.
seed: u64Random modelling seed, reset for each operation.
responses: Vec<usize>Recorded 1-based interactive answers, reset for each operation.
channelling: ChannellingRepresentation channelling policy.
amo_encoding: Option<AmoEncoding>Optional SAT encoder overrides.
cardinality_encoding: Option<CardinalityEncoding>Optional SAT cardinality encoder override.
pb_encoding: Option<PbEncoding>Optional SAT pseudo-Boolean encoder override.
element_encoding: Option<ElementEncoding>Optional SAT element-constraint encoder override.
table_encoding: Option<TableEncoding>Optional SAT table-constraint encoder override.
alldifferent_encoding: Option<AllDifferentEncoding>Optional SAT allDifferent encoder override.
minion_discrete_threshold: Option<usize>Optional Minion discrete-domain span threshold.
minion_varorder: Option<MinionVariableOrder>Optional Minion search orders.
minion_valorder: Option<MinionValueOrder>Optional Minion value ordering.
sat_backend: SatBackendCompiled SAT implementation to use.
solver_seed: u32Backend solver seed.
solver_timeout: Option<Duration>Cumulative wall-clock solver timeout.
trace: TraceConfigTrace events to emit to the caller’s tracing subscriber.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
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: 112 bytes