pub struct SearchParams {
pub pruning: Pruning,
pub ordering: Ordering,
pub max_solutions: usize,
pub node_budget: Option<u64>,
pub cancel: Option<CancelToken>,
}Expand description
Shared, immutable search parameters. Collapses the three former per-mode
config structs (BacktrackConfig / BackjumpConfig / OptimizeConfig),
which differed only in a maximize bool and each carried its own cloned
copy of constraint_weights + var_constraint_ids. Those read-only vectors
are now borrowed by the kernel, so they live nowhere in this struct.
Fields§
§pruning: Pruning§ordering: Ordering§max_solutions: usize§node_budget: Option<u64>Node budget (search-frame count). None disables. See
crate::SolveConfig::node_budget.
cancel: Option<CancelToken>Cooperative cancellation handle, checked at the same cadence as
node_budget. None disables. See crate::SolveConfig::cancel.
Trait Implementations§
Source§impl Clone for SearchParams
impl Clone for SearchParams
Source§fn clone(&self) -> SearchParams
fn clone(&self) -> SearchParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SearchParams
impl RefUnwindSafe for SearchParams
impl Send for SearchParams
impl Sync for SearchParams
impl Unpin for SearchParams
impl UnsafeUnpin for SearchParams
impl UnwindSafe for SearchParams
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