pub enum SearchStatus {
Optimal,
TimeLimit,
BudgetExhausted,
ErrorBoundReached,
}Expand description
Why the search stopped.
Only Optimal means the tree is proven best for the given depth and
support; the others mean the search ran out of something first.
Variants§
Optimal
The search space was exhausted: no better tree exists.
TimeLimit
The time limit ran out first.
BudgetExhausted
The anytime search ran out of budget to widen with.
ErrorBoundReached
A tree within max_gap of the caller’s error bound was found, and the
search stopped there rather than proving optimality.
Implementations§
Source§impl SearchStatus
impl SearchStatus
Sourcepub fn is_optimal(self) -> bool
pub fn is_optimal(self) -> bool
Whether the returned tree is proven optimal.
Trait Implementations§
Source§impl Clone for SearchStatus
impl Clone for SearchStatus
Source§fn clone(&self) -> SearchStatus
fn clone(&self) -> SearchStatus
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 moreimpl Copy for SearchStatus
Source§impl Debug for SearchStatus
impl Debug for SearchStatus
Source§impl<'de> Deserialize<'de> for SearchStatus
impl<'de> Deserialize<'de> for SearchStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SearchStatus
impl Display for SearchStatus
impl Eq for SearchStatus
Source§impl PartialEq for SearchStatus
impl PartialEq for SearchStatus
Source§fn eq(&self, other: &SearchStatus) -> bool
fn eq(&self, other: &SearchStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SearchStatus
impl Serialize for SearchStatus
impl StructuralPartialEq for SearchStatus
Auto Trait Implementations§
impl Freeze for SearchStatus
impl RefUnwindSafe for SearchStatus
impl Send for SearchStatus
impl Sync for SearchStatus
impl Unpin for SearchStatus
impl UnsafeUnpin for SearchStatus
impl UnwindSafe for SearchStatus
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