#[non_exhaustive]pub enum SearchOutcome {
Plan(Plan, SearchStats),
Unsolvable(SearchStats),
LimitReached(SearchStats),
}Expand description
The result of a search operation.
This enum is #[non_exhaustive] — use a wildcard arm (_) when matching.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Plan(Plan, SearchStats)
A valid plan was found.
Unsolvable(SearchStats)
The task is provably unsolvable.
LimitReached(SearchStats)
A search limit was reached before a conclusion could be drawn.
Trait Implementations§
Source§impl Clone for SearchOutcome
impl Clone for SearchOutcome
Source§fn clone(&self) -> SearchOutcome
fn clone(&self) -> SearchOutcome
Returns a duplicate of the value. Read more
1.0.0 · 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 SearchOutcome
impl RefUnwindSafe for SearchOutcome
impl Send for SearchOutcome
impl Sync for SearchOutcome
impl Unpin for SearchOutcome
impl UnsafeUnpin for SearchOutcome
impl UnwindSafe for SearchOutcome
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
fn accept_mut(&self, v: &mut V) -> O
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