pub enum SearchStrategy {
Dfs,
Bfs,
Fair,
}Expand description
Order in which the resolver explores pending goal states.
Variants§
Dfs
Depth-first search: explore the most recent state first (the default).
Bfs
Breadth-first search: explore the oldest pending state first.
Fair
Fair search: round-robin over pending states to avoid starvation.
Implementations§
Source§impl SearchStrategy
impl SearchStrategy
Sourcepub fn from_symbol(symbol: &Symbol) -> Option<Self>
pub fn from_symbol(symbol: &Symbol) -> Option<Self>
Parses a strategy from its surface symbol (dfs, bfs, or fair).
Returns None for any other symbol name.
Sourcepub fn as_symbol(self) -> Symbol
pub fn as_symbol(self) -> Symbol
Returns the surface symbol for this strategy (the inverse of
SearchStrategy::from_symbol).
Trait Implementations§
Source§impl Clone for SearchStrategy
impl Clone for SearchStrategy
Source§fn clone(&self) -> SearchStrategy
fn clone(&self) -> SearchStrategy
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 SearchStrategy
Source§impl Debug for SearchStrategy
impl Debug for SearchStrategy
Source§impl Default for SearchStrategy
impl Default for SearchStrategy
Source§fn default() -> SearchStrategy
fn default() -> SearchStrategy
Returns the “default value” for a type. Read more
impl Eq for SearchStrategy
Source§impl PartialEq for SearchStrategy
impl PartialEq for SearchStrategy
Source§fn eq(&self, other: &SearchStrategy) -> bool
fn eq(&self, other: &SearchStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchStrategy
Auto Trait Implementations§
impl Freeze for SearchStrategy
impl RefUnwindSafe for SearchStrategy
impl Send for SearchStrategy
impl Sync for SearchStrategy
impl Unpin for SearchStrategy
impl UnsafeUnpin for SearchStrategy
impl UnwindSafe for SearchStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.