pub struct SearchLimits {
pub deadline: Option<Instant>,
pub max_states: Option<u64>,
pub greedy_only: bool,
pub strict_atoms: bool,
pub expand_ring_size: bool,
}Expand description
Caps for cost_mapping_with_generators_limited. Empty limits = unbounded.
Fields§
§deadline: Option<Instant>Stop when Instant::now() reaches this (native). None = no clock cap.
max_states: Option<u64>Stop when SearchStats::states reaches this. None = no node cap.
greedy_only: boolGreedy incumbent only — skip branch-and-bound dfs.
strict_atoms: boolDepict house: do not pair atoms with non-positive atom gain (element
mismatch). Unbounded cost_mapping keeps N→C when that is cheapest.
expand_ring_size: boolDepict house: after an equal-size ring seed, grow onto disjoint ring sizes (14- vs 15-macrolide). Unbounded search does not wrap mixed sizes.
Implementations§
Source§impl SearchLimits
impl SearchLimits
Sourcepub fn house() -> Self
pub fn house() -> Self
Depict-path default: ALIGN_HOUSE_TIMEOUT_MS + ALIGN_HOUSE_MAX_STATES.
Sourcepub fn from_timeout_ms(timeout_ms: Option<u32>, greedy_only: bool) -> Self
pub fn from_timeout_ms(timeout_ms: Option<u32>, greedy_only: bool) -> Self
Wire timeout_ms: None = house, Some(0) = unbounded, else that many ms.
Trait Implementations§
Source§impl Clone for SearchLimits
impl Clone for SearchLimits
Source§fn clone(&self) -> SearchLimits
fn clone(&self) -> SearchLimits
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 moreSource§impl Debug for SearchLimits
impl Debug for SearchLimits
Source§impl Default for SearchLimits
impl Default for SearchLimits
Source§fn default() -> SearchLimits
fn default() -> SearchLimits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchLimits
impl RefUnwindSafe for SearchLimits
impl Send for SearchLimits
impl Sync for SearchLimits
impl Unpin for SearchLimits
impl UnsafeUnpin for SearchLimits
impl UnwindSafe for SearchLimits
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
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,
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> ⓘ
Converts
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> ⓘ
Converts
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 more